I created an add-in in VB and am trying to automate the filtering of an Outline Code field. When I do it manually and record a macro, the line looks like this...
SetAutoFilter FieldName:="Outline Code1", FilterType:=pjAutoFilterIn, Criteria1:="CLIN" & Chr$(9) & "MKT"
I tried putting this in my add-in but it doesn't like the command Chr$(9). So I changed it to Chr(9) but it still doesn't work like it is supposed to. Can someone help me with the proper syntax?
Wellyn