Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
I'm trying to select all values in a specific field that are less than the current week using a macro. How would I accomplish this by using this statement?
ActiveDocument.Fields("Week").Select("(1|2)")
 
					
				
		
Hi,
You can try like this:
ActiveDocument.Fields("Week").Select ">=" & 1 & "<=" & 2
 
					
				
		
 er_mohit
		
			er_mohit
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		have you tried in Select field using macro add action -->Select field
In select Field write Field name i.e Week
and in search string write (1|2)
hope it helps
