Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBE( Visual Basic Application)

Hi

With an XLA file that load when Excel open, there is a new button in the vbe
standard bar menu that appears. With the click of that button it pops up a
userform that contain a TextBox that shows all the code that is present in
the vbe XLA file. The problem that I have is that it always shoes the code
of only that XLA file. But, i would like to be able to see the codes of
other vbproject. Meaning, that the one that i am seeing a the screen, is the
one that i would like to list when i click on my button.
So my questions a How, When, Where can I get the information that I need
to use the ThisWorkbook.name of the window that I am looking at and pass it
some how to my XLA project ?

Thank's

Philippe


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default VBE( Visual Basic Application)

Use ActiveWorkbook instead of ThisWorkbook.


"phil" wrote:

Hi

With an XLA file that load when Excel open, there is a new button in the vbe
standard bar menu that appears. With the click of that button it pops up a
userform that contain a TextBox that shows all the code that is present in
the vbe XLA file. The problem that I have is that it always shoes the code
of only that XLA file. But, i would like to be able to see the codes of
other vbproject. Meaning, that the one that i am seeing a the screen, is the
one that i would like to list when i click on my button.
So my questions a How, When, Where can I get the information that I need
to use the ThisWorkbook.name of the window that I am looking at and pass it
some how to my XLA project ?

Thank's

Philippe



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
Is Visual Basic the same as Visual Studio 2008? Mike Stewart Excel Worksheet Functions 5 January 11th 09 04:58 PM
changing the visual basic in office 2003 to visual studio net bigdaddy3 Excel Discussion (Misc queries) 1 September 13th 05 10:57 AM
How do I protect Visual Basic for Application Code Zagrijs Venter New Users to Excel 6 August 5th 05 09:24 PM
How do I open an application and run a file using visual basic Cozy Excel Programming 0 March 13th 05 09:49 AM
Visual Basic run-time error when printing from web application... GWS Excel Programming 0 February 23rd 05 04:09 PM


All times are GMT +1. The time now is 09:06 AM.

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"