bssoftware
asked on
Powerbuilder and excel VBA.
Hi,
From my powerbuilder 8.0 application, I have to open an excel file with some parameters and same parameters I want to use in excel VBA as commandline() for further process.
Kindly help
Thanks,
Nagendra
From my powerbuilder 8.0 application, I have to open an excel file with some parameters and same parameters I want to use in excel VBA as commandline() for further process.
Kindly help
Thanks,
Nagendra
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
berXpert's solution is going to work well......
For the First part, You can also take a look at ShellExecuteEx function. For an example, go to :
https://www.experts-exchange.com/questions/20663647/opening-an-access-file-mde-from-PB.html
For passing parameters, use the lpParameters member of the st_shellexecuteinfo structure.
Regards,
Vikas
For the First part, You can also take a look at ShellExecuteEx function. For an example, go to :
https://www.experts-exchange.com/questions/20663647/opening-an-access-file-mde-from-PB.html
For passing parameters, use the lpParameters member of the st_shellexecuteinfo structure.
Regards,
Vikas
You can do this also:
You can connect to excel and the pass the paramters into a excel and read the value from that cell internally if you need.
string ls_parm
oleobject lole_excel
lole_excel = create oleobject
ls_parm = 'Parm1 Parm2'
ll_result = lole_excel.ConnectToNewObj ect( "excel.application")
lole_excel.application.wor kbooks.add ( )
lole_excel.activesheet.cel ls(1,1).va lue = ls_parm
lole_excel.application.vis ible = true
if isvalid(iole_object) then destroy iole_object
regards-
You can connect to excel and the pass the paramters into a excel and read the value from that cell internally if you need.
string ls_parm
oleobject lole_excel
lole_excel = create oleobject
ls_parm = 'Parm1 Parm2'
ll_result = lole_excel.ConnectToNewObj
lole_excel.application.wor
lole_excel.activesheet.cel
lole_excel.application.vis
if isvalid(iole_object) then destroy iole_object
regards-
I am not sure if I understand this correctly. I understand you would like to pass some parameteres to excel. But, what would the paramteres do within excel? Depends on what needs to be done, I am sure there is a way.
regards-