jamiguel77
Active Member
- Joined
- Feb 14, 2006
- Messages
- 387
- Office Version
- 2016
- 2010
- 2007
- Platform
- Windows
- Web
hi, i know how to:
Dim WorksheetExists As Boolean
WorksheetExists = Evaluate("ISREF('Graficas'!A1)")
and work
But i am work with some workbooks....
and then i need evaluate if exist sheets on each workbook.
this:
WorksheetExists = Evaluate("ISREF('Graficas'!A1)")
Evaluate in the last opened Xls File...
here more code:
Dim wbk As Workbook
Dim wbk2 As Workbook
Set wbk2 = Workbooks.Open(Filename:=Filename2)
Set wbk = Workbooks.Open(Filename:=Filename1)
how to check if sheet named: 'Graficas' exist on wbk2 and wbk?
Thanks
Dim WorksheetExists As Boolean
WorksheetExists = Evaluate("ISREF('Graficas'!A1)")
and work
But i am work with some workbooks....
and then i need evaluate if exist sheets on each workbook.
this:
WorksheetExists = Evaluate("ISREF('Graficas'!A1)")
Evaluate in the last opened Xls File...
here more code:
Dim wbk As Workbook
Dim wbk2 As Workbook
Set wbk2 = Workbooks.Open(Filename:=Filename2)
Set wbk = Workbooks.Open(Filename:=Filename1)
how to check if sheet named: 'Graficas' exist on wbk2 and wbk?
Thanks