oExcel.Run: macro not found
oExcel.Run: macro not found
oExcel.Run: macro not found
oExcel.Run: macro not found
oExcel.Run: macro not found
oExcel.Run: macro not found oExcel.Run: macro not found oExcel.Run: macro not found oExcel.Run: macro not found oExcel.Run: macro not found oExcel.Run: macro not found oExcel.Run: macro not found oExcel.Run: macro not found
oExcel.Run: macro not found oExcel.Run: macro not found
oExcel.Run: macro not found
Go Back  Xtreme Visual Basic Talk > > > oExcel.Run: macro not found


Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2005, 01:50 PM
jsrinivas_74 jsrinivas_74 is offline
Newcomer
 
Join Date: Feb 2005
Posts: 1
Angry I have a similar problem


Hi,

I wrote code similar to villains32. Near oExcel.Run("DoKbTest") 'Run the macros. I get an error. The erroe is as follows

System.Runtimme.InteropServices.COMException: The macro DoKbTest cannot be found.

But i wrote this macro in excel worksheet.

I dont know how to fix it. But it is problem with permission

Than you in advance
Edit by herilane: Split from unrelated threawd

Last edited by herilane; 02-21-2005 at 04:01 AM.
Reply With Quote
  #2  
Old 02-21-2005, 04:03 AM
herilane's Avatar
herilaneoExcel.Run: macro not found herilane is offline
Unashamed geek

Retired Moderator
* Expert *
 
Join Date: Jul 2003
Location: London, England
Posts: 8,988
Default

You would probably need to specify the name of the workbook that the macro is in.
Code:
oExcel.Run "myworkbook.xls!DoKbTest"
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
oExcel.Run: macro not found
oExcel.Run: macro not found
oExcel.Run: macro not found oExcel.Run: macro not found
oExcel.Run: macro not found
oExcel.Run: macro not found
oExcel.Run: macro not found oExcel.Run: macro not found oExcel.Run: macro not found oExcel.Run: macro not found oExcel.Run: macro not found oExcel.Run: macro not found oExcel.Run: macro not found
oExcel.Run: macro not found
oExcel.Run: macro not found
 
oExcel.Run: macro not found
oExcel.Run: macro not found
 
-->