Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Why is the Excel Addin the Activeworkbook

Why is the Excel Addin the Activeworkbook. The IS Addin is set to true, but
the Addin is the active workbook when called by a Auto_Open macro from a
workbook until the Auto_Open macro is finished?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default Why is the Excel Addin the Activeworkbook

Maybe because it is "active" opening itself??

Any workbook can be the "activeworkbook"

This is why we use Thisworkbook within addins so it is clear that we are
refering to the wb that has the code in it.

Depending on why this bothers you you may want to assign a variable to your
original wb and then call it by name

dim myWB as Workbook
set myWB = Activeworkbook
auto_open some addin
myWB.dosomething


"Martin in Frisco Texas" wrote:

Why is the Excel Addin the Activeworkbook. The IS Addin is set to true, but
the Addin is the active workbook when called by a Auto_Open macro from a
workbook until the Auto_Open macro is finished?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Why is the Excel Addin the Activeworkbook

Vacations Over

Thanks

Martin

"Vacation's Over" wrote:

Maybe because it is "active" opening itself??

Any workbook can be the "activeworkbook"

This is why we use Thisworkbook within addins so it is clear that we are
refering to the wb that has the code in it.

Depending on why this bothers you you may want to assign a variable to your
original wb and then call it by name

dim myWB as Workbook
set myWB = Activeworkbook
auto_open some addin
myWB.dosomething


"Martin in Frisco Texas" wrote:

Why is the Excel Addin the Activeworkbook. The IS Addin is set to true, but
the Addin is the active workbook when called by a Auto_Open macro from a
workbook until the Auto_Open macro is finished?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Why is the Excel Addin the Activeworkbook

Note quite the same, but related. I can't get the an AddIn to run an macro
when a workbook opens. I have tried a number of different configurations
(Workbook_Activate, App_Activate, Workbook_Open, and others) and none of them
trigger when I open Excel with the AddIn running.
I have thought that part of the problem is that the AddIn Workbooks is never
really running. I am not sure.
I would appreciate any help.
Thanks,
Ethan

"Vacation's Over" wrote:

Maybe because it is "active" opening itself??

Any workbook can be the "activeworkbook"

This is why we use Thisworkbook within addins so it is clear that we are
refering to the wb that has the code in it.

Depending on why this bothers you you may want to assign a variable to your
original wb and then call it by name

dim myWB as Workbook
set myWB = Activeworkbook
auto_open some addin
myWB.dosomething


"Martin in Frisco Texas" wrote:

Why is the Excel Addin the Activeworkbook. The IS Addin is set to true, but
the Addin is the active workbook when called by a Auto_Open macro from a
workbook until the Auto_Open macro is finished?

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
ActiveWorkBook Pete Excel Discussion (Misc queries) 3 May 9th 05 04:14 PM
Adding a sheets name to the worksheets that are copied over from an addin file to the activeworkbook KimberlyC Excel Programming 2 May 7th 05 04:10 AM
Excel 2000 VBA ActiveWorkbook.FullName Dave Stanwick Excel Programming 2 December 12th 03 03:16 PM
Remove Excel AddIn from AddIn List !! Help carl Excel Programming 2 December 8th 03 03:36 PM
Excel COM Addin vik Excel Programming 0 November 4th 03 10:19 PM


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