Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel automation: connecting to Excel
Which one is better (safer) way to do:
1. If moExcelApp.Workbooks.Count 0 Then 'when any sheet is opened Set moExcelWS = moExcelApp.ActiveWorkbook.ActiveSheet End if or 2. If moExcelApp.Workbooks.Count 0 Then 'when any sheet is opened Set moExcelWS = moExcelApp.moExcelApp.Workbooks(1).Worksheets(1) End if Jack |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
connecting wordpad and excel | Excel Discussion (Misc queries) | |||
Connecting excel to the weblink | Excel Programming | |||
EXCEL-VBA, ADO not connecting to a TXT file | Excel Programming | |||
Excel connecting to Teradata | Excel Programming | |||
Connecting to SQL from Excel | Excel Programming |