>I need to activate a workbook through a cell reference. the workook
> name is stored in cell A1 as "pnlreport_060321.xls". This name
[quoted text clipped - 14 lines]
>
> Thanks : )
A1 in the current workbook gives me the file name that changes everyday
due to date.
A1 shows:
="pnlreport_"& TEXT(now(),"yymmdd")& ".xls"
this will produce: pnlreport_060321.xls if today's date is 21st March
2006.
I need to activate this file, which is already open through VB. But it
gives me a run time error in above code.
Thanks
Gary Keramidas - 22 Mar 2006 08:34 GMT
i put your formula in A1 and this worked for me
Windows(fileA).Activate
maybe you should qualify the range with the sheet name, since i don't know what
the active sheet is
fileA =
workbooks("YourWorkbookName").worksheets("YourSheetName").Range("A1").Value

Signature
Gary
> A1 in the current workbook gives me the file name that changes everyday
> due to date.
[quoted text clipped - 7 lines]
>
> Thanks
VB Script for Excel - 22 Mar 2006 08:45 GMT
IT WORKS GARY!!!!
thank you so much and thanks a millionsss.
i really appreciate your help
Dhaval
Gary Keramidas - 22 Mar 2006 08:55 GMT
you're welcome

Signature
Gary
> IT WORKS GARY!!!!
> thank you so much and thanks a millionsss.
> i really appreciate your help
>
> Dhaval