A
AlexD
How could I open another spreadsheet in the same workbook
if the workbook has been already opened?
If logWorkbookIsOpend = False Then
Set xlBook = xlApp.Workbooks.Open(strWorkbookName)
Set xlSheet = xlBook.Worksheets(strWorksheetName)
xlSheet.Activate
xlApp.Visible = True
Else
‘ here is a mistake #0
Set xlSheet = Workbooks(strWorkbookName).Worksheets
(strWorksheetName)
xlSheet.Activate
xlApp.Visible = True
End If
Thanks
if the workbook has been already opened?
If logWorkbookIsOpend = False Then
Set xlBook = xlApp.Workbooks.Open(strWorkbookName)
Set xlSheet = xlBook.Worksheets(strWorksheetName)
xlSheet.Activate
xlApp.Visible = True
Else
‘ here is a mistake #0
Set xlSheet = Workbooks(strWorkbookName).Worksheets
(strWorksheetName)
xlSheet.Activate
xlApp.Visible = True
End If
Thanks