Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Running a excel macro from VB6
Is it possible to run few excel macro from VB6?
I have few macro that takes data from 4 diffrent sheet of same workbook and then adds a report sheet where it dumps the report(it also creats the temp sheet 3 times and then delets the same after calculations are over). I want to create a exe file from VB6 which will take data from this workbook and produce the report in the new workbook. Will appreciate any guides or pointers as I am new in VB. Regards, Bimal |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Running a excel macro from VB6
http://support.microsoft.com/?kbid=177760
VBA: How to Run Macros in Other Office Programs The above is for access, but would be the same for VB http://support.microsoft.com/?kbid=165518 Calling Macros Using OLE from MS Visual Basic for Applications Again, code would be applicable from VB -- Regards, Tom Ogilvy "Bimal" wrote in message m... Is it possible to run few excel macro from VB6? I have few macro that takes data from 4 diffrent sheet of same workbook and then adds a report sheet where it dumps the report(it also creats the temp sheet 3 times and then delets the same after calculations are over). I want to create a exe file from VB6 which will take data from this workbook and produce the report in the new workbook. Will appreciate any guides or pointers as I am new in VB. Regards, Bimal |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Running a excel macro from VB6
Bimal,
Assuming that you have an Excel object called xlApp, try xlApp.Run "myWorkbook!myMacro" if you want it to run automatically on opening the workbook, put the code in teh Workbook_Open event. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Bimal" wrote in message m... Is it possible to run few excel macro from VB6? I have few macro that takes data from 4 diffrent sheet of same workbook and then adds a report sheet where it dumps the report(it also creats the temp sheet 3 times and then delets the same after calculations are over). I want to create a exe file from VB6 which will take data from this workbook and produce the report in the new workbook. Will appreciate any guides or pointers as I am new in VB. Regards, Bimal |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Running excel macro by scheduler | Excel Discussion (Misc queries) | |||
Excel running Word macro | Excel Discussion (Misc queries) | |||
Excel-Macro running through SQL update. | Excel Programming | |||
Launch Macro in Access via Macro running in Excel??? | Excel Programming | |||
Running Excel Macro from VB6 | Excel Programming |