Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have an application written in VB which runs a particular macro in a few Excel workbooks. Is there a way to capture the errors raised in the macro in VB? Specifically, I dont want Excel or VBA to display any errors. All errors must be transfered to the VB code calling the macro. (Err.Raise in the macro just shows up a dialog with it going into the errorhandler of the calling VB code.) Thanks in advance! Priya |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could make that Excel macro a function, handle the error in that
function and pass the error to VB as a result of that function. Haven't tried it but I think you could pass the Err object from the Excel function to VB. Then you can do whatever you want with this in VB. RBS "Priya" wrote in message ... Hi, I have an application written in VB which runs a particular macro in a few Excel workbooks. Is there a way to capture the errors raised in the macro in VB? Specifically, I dont want Excel or VBA to display any errors. All errors must be transfered to the VB code calling the macro. (Err.Raise in the macro just shows up a dialog with it going into the errorhandler of the calling VB code.) Thanks in advance! Priya |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Want to run two macros without errors | Excel Discussion (Misc queries) | |||
Capturing errors in Macros using VB | Excel Programming | |||
macros errors | Excel Worksheet Functions | |||
Capturing query table errors | Excel Programming | |||
Capturing query table errors | Excel Worksheet Functions |