Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Run-time error 9 when running add-in

Thanks Nick.

NickHK wrote:

Rob,
Dave's point was that your code probably does not need/want to interact with
add-in, because by their nature, they are different to a "normal" spread
sheet.
For example, with an addin I have:
?workbooks("pdfmaker.xla").name
PDFMaker.xla
?workbooks("pdfmaker.xla").windows(1).Visible
error "SubScript out of Range"


So skip addins (including your own) in your code.
When run from Personal.xls, you did not have any add-ins installed and
consequently never raised this error. Moving the code to an add-in, created
the error.

NickHK

"RobH" wrote in message
ps.com...
Ignoring the add in wouldn't help, because I want the add in to be
run. My confusion is that the code works perfectly when run from
PERSONAL.XLS (where we don't want it to be), but falls over when run
from the add-in (where we do want it to be).

Rob


--

Dave Peterson
Reply
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
Run time error 1004 When running in 2003 Lakshman Excel Programming 0 January 17th 07 08:29 PM
Run time error 1004 When running in 2003 Lakshman Excel Discussion (Misc queries) 10 January 17th 07 06:06 PM
Run Time error '1004' when running Calculation method Simon P[_2_] Excel Programming 1 January 5th 04 12:32 PM
Run-time error '1004' running to excel objects at once Dianna Braden Excel Programming 0 October 16th 03 08:55 PM


All times are GMT +1. The time now is 04:58 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"