F
fred
Hello,
I am using vbasic and Excel automation.
I do not know how to open the blank sheet.
I tried this:
On Error GoTo nmoExcelApp
Dim moExcelApp As Object
Dim moExcelWBk As Object
Dim moExcelWS As Object
Set moExcelApp = CreateObject("Excel.Application")
If moExcelWS Is Nothing Then
Set moExcelWS =
moExcelApp.Workbooks("blank.csv").Worksheets("blank")
End If
That does not work.
moExcelWS is Nothing
but when I do this:
If moExcelWS Is Nothing Then
Set moExcelWS = moExcelApp.Workbooks.Open(App.Path &
"\blank.csv")
End If
it appears that moExcelWS references to the sheet, but the sheet is not
displayed (visible) on screen.
What to do to have the blank spreadsheet opened and visible?
Thanks,
Fred
I am using vbasic and Excel automation.
I do not know how to open the blank sheet.
I tried this:
On Error GoTo nmoExcelApp
Dim moExcelApp As Object
Dim moExcelWBk As Object
Dim moExcelWS As Object
Set moExcelApp = CreateObject("Excel.Application")
If moExcelWS Is Nothing Then
Set moExcelWS =
moExcelApp.Workbooks("blank.csv").Worksheets("blank")
End If
That does not work.
moExcelWS is Nothing
but when I do this:
If moExcelWS Is Nothing Then
Set moExcelWS = moExcelApp.Workbooks.Open(App.Path &
"\blank.csv")
End If
it appears that moExcelWS references to the sheet, but the sheet is not
displayed (visible) on screen.
What to do to have the blank spreadsheet opened and visible?
Thanks,
Fred