LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Macro not found in Application.Run

Hi,

I need help with this unusual problem that does not happen when I am in
debug mode.

The following line of code is in a function defined in a VB project:
Application.Run "'" + ActiveWorkbook.Name + "'!" + macro

And I'm calling this VB function from Excel and the macro is
implemented in a VBA module in Excel. When I'm debugging, i.e. VB is
Run and then start Excel and call the VB function, the function gets
called but the Application.Run does not give any error and all works
fine.

However if I dont run VB in background, just open Excel add VB
reference and call the VB function, Application.Run says that macro not
found.

If anyone out there has any clues, please help....thanks in advance.

- Andy

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application.OnKey Macro Cannot be found RB Smissaert Excel Programming 3 April 7th 06 08:57 AM
Macro cannot be found Barney Excel Discussion (Misc queries) 2 April 4th 06 01:21 PM
Macro cannot be found nenzax Excel Programming 5 February 7th 06 02:00 PM
macro to close excel application other than application.quit mary Excel Programming 1 September 14th 04 03:43 PM
macro not found Brian Murphy[_2_] Excel Programming 9 April 23rd 04 04:54 AM


All times are GMT +1. The time now is 11:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"