View Single Post
  #13   Report Post  
Posted to microsoft.public.excel.programming
deko[_3_] deko[_3_] is offline
external usenet poster
 
Posts: 62
Default How to set conditional format with vba?

correction: on the second time through the loop, I get an error:

Error Number 1004: Select method of Range class failed

The first time is fine, but the second time fails. I tried getting rid of
the Select A1 at the end, but no luck.


oops....

xlapp.Workbooks(strXlsFile).Worksheets(sn(i)).Acti vate

now it works...