Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
I would like to write a macro to select a field -> currency. I have it written in the following, I know it is wrong, but just to give an ideal what I tend to achieve.
Sub SelectField
 rem ActiveDocument.Fields(Currency).Select
 Activedocument.getfield("Currency")
 End Sub 
I am trying to turn on/off the green light button of currency by Marco VBAscript once it is run.
 
 Frank_Hartmann
		
			Frank_Hartmann
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		try like below:
Sub Unselect
ActiveDocument.Fields("Currency").clear
End sub
hope this helps!
 Frank_Hartmann
		
			Frank_Hartmann
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		try like:
Sub SelectField
ActiveDocument.Fields("Currency").select "USD"
End Sub
This will set the Filter to "USD"
hope this helps!
 
					
				
		
Thanks, can I do de-select as well?
 Frank_Hartmann
		
			Frank_Hartmann
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		try like below:
Sub Unselect
ActiveDocument.Fields("Currency").clear
End sub
hope this helps!
