Hi
I am trying to open an excel through Excel VBA.
I am getting Sytax error at
sheet.workbooks.open "C:\Documents and Settings\"&sapid&"\Desktop\mysheet.xls" ,true,false
Here is my code
Dim sheet
Dim sapid
sapid = InputBox("Enter your SAP ID :")
Set sheet = CreateObject("excel.application")
sheet.Visible = True
'sheet.workbooks.open localpath ,true,false
sheet.workbooks.open "C:\Documents and Settings\"&sapid&"\Desktop\mysheet.xls" ,true,false
Can any one help me in this.
Thanks in Advance,
Lakshmi...
I am trying to open an excel through Excel VBA.
I am getting Sytax error at
sheet.workbooks.open "C:\Documents and Settings\"&sapid&"\Desktop\mysheet.xls" ,true,false
Here is my code
Dim sheet
Dim sapid
sapid = InputBox("Enter your SAP ID :")
Set sheet = CreateObject("excel.application")
sheet.Visible = True
'sheet.workbooks.open localpath ,true,false
sheet.workbooks.open "C:\Documents and Settings\"&sapid&"\Desktop\mysheet.xls" ,true,false
Can any one help me in this.
Thanks in Advance,
Lakshmi...