Hi,
I'm new to VB
I'm trying to create & open an excel file name abc (.xls) in
C:\NBUTANE_Project\Reporting\rsview_excel\VBA
_____________________________________________________________
Sub create()
Dim objExcel As Object
Dim sExcelFilePath As String
Set objExcel = CreateObject("Excel.Application")
sExcelFilePath = gProject.Path & "\VBA\abc.xls"
objExcel.Workbooks.Open (sExcelFilePath)
End Sub
_________________________________________________________________
This VB scripts will be load into RSView32, so when I click on the 'create abc' button as, i'll get the abc.xls file created automatically and open up.
But no luck, does anyone here knows if I'm doing the script right?
I tried to 'step-over' the script (press F8 + Shift), it only shows running on top of the VB, but no file is created
I'm new to VB
I'm trying to create & open an excel file name abc (.xls) in
C:\NBUTANE_Project\Reporting\rsview_excel\VBA
_____________________________________________________________
Sub create()
Dim objExcel As Object
Dim sExcelFilePath As String
Set objExcel = CreateObject("Excel.Application")
sExcelFilePath = gProject.Path & "\VBA\abc.xls"
objExcel.Workbooks.Open (sExcelFilePath)
End Sub
_________________________________________________________________
This VB scripts will be load into RSView32, so when I click on the 'create abc' button as, i'll get the abc.xls file created automatically and open up.
But no luck, does anyone here knows if I'm doing the script right?
I tried to 'step-over' the script (press F8 + Shift), it only shows running on top of the VB, but no file is created