PC Review


Reply
Thread Tools Rate Thread

Addin - Invalidate Error

 
 
Brian B.
Guest
Posts: n/a
 
      9th Jul 2010
Is it possible to create an Excel 2007 add-in that checks the
existence for a particular sheet in an workbook and if that sheet
exists populate drop-downs on a ribbon with values from that
particular sheet?

I am curious b/c I have created a workbook that does what I want
(populates drop-downs if the sheet exists in the active workbook) but
as soon as I save the file as an add-in and try to use it on other
workbooks I keep getting an Error 91 (object variable) when I try to
Invalidate the ribbon and refresh the drop-down values.

Thanks,
-Brian
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      10th Jul 2010
Show us the XML and the code.

--

HTH

Bob

"Brian B." <(E-Mail Removed)> wrote in message
news:d097431a-eafa-4ce8-a4ce-(E-Mail Removed)...
> Is it possible to create an Excel 2007 add-in that checks the
> existence for a particular sheet in an workbook and if that sheet
> exists populate drop-downs on a ribbon with values from that
> particular sheet?
>
> I am curious b/c I have created a workbook that does what I want
> (populates drop-downs if the sheet exists in the active workbook) but
> as soon as I save the file as an add-in and try to use it on other
> workbooks I keep getting an Error 91 (object variable) when I try to
> Invalidate the ribbon and refresh the drop-down values.
>
> Thanks,
> -Brian



 
Reply With Quote
 
Brian B.
Guest
Posts: n/a
 
      10th Jul 2010
Bob, thanks for the response.

However I ended up figuring out the problem last night.

I am pretty sure it related to having multiple add-ins using the same
"OnLoad" callback name. After making each add-ins OnLoad callback
unique, my add-in was working as expected.

Here is the web-site that had the solution (Ken Puls):
http://www.excelguru.ca/blog/2009/06...ures%E2%80%A6/

re: code - there are a couple hundred lines of code so I don't know if
you all would want to review.

Thanks,
-Brian
 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      10th Jul 2010
I recall that post. I even added a comment.

--

HTH

Bob

"Brian B." <(E-Mail Removed)> wrote in message
news:9afdb6b1-14b0-470a-9e94-(E-Mail Removed)...
> Bob, thanks for the response.
>
> However I ended up figuring out the problem last night.
>
> I am pretty sure it related to having multiple add-ins using the same
> "OnLoad" callback name. After making each add-ins OnLoad callback
> unique, my add-in was working as expected.
>
> Here is the web-site that had the solution (Ken Puls):
> http://www.excelguru.ca/blog/2009/06...ures%E2%80%A6/
>
> re: code - there are a couple hundred lines of code so I don't know if
> you all would want to review.
>
> Thanks,
> -Brian



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ribbon Invalidate error 91 tighe Microsoft Access VBA Modules 2 16th Feb 2010 02:56 PM
Multiple Excel addin versions having LaodBehaviour issue at Addin Dwipayan Das Microsoft Excel Programming 0 17th Apr 2009 05:51 AM
setup project for Excel addin, won't register addin =?Utf-8?B?R2Vycnk=?= Microsoft Excel Programming 0 31st Oct 2007 12:01 AM
Unshimmed Automation Addin and Shimmed COM Addin in same App Domai =?Utf-8?B?QnJhbmRvbg==?= Microsoft Excel Programming 0 27th Jun 2006 11:18 PM
howtofix excel 2000 says invalid AddIn for valid excel97 AddIn robm Microsoft Excel Discussion 0 24th Sep 2003 06:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:08 AM.