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


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 shows 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 ?


That is my main problem. there is 2 others.

- The button sometimes only works once
- I cant come back on the same place before i click my button

Any help, critics, amilioration at all, will be appriciated !

Thank's

Philippe


+-------------------------------------------------------------------+
|Filename: vba_to_xld.zip |
|Download: http://www.excelforum.com/attachment.php?postid=3585 |
+-------------------------------------------------------------------+

--
Hellboy
------------------------------------------------------------------------
Hellboy's Profile: http://www.excelforum.com/member.php...o&userid=20879
View this thread: http://www.excelforum.com/showthread...hreadid=385878

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBE (visual Basic Editor) variable

http://www.cpearson.com/excel/vbe.htm

Should give you some insights into how to modify the code in the xla.

--
Regards,
Tom Ogilvy

"Hellboy" wrote in
message ...

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 shows 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 ?


That is my main problem. there is 2 others.

- The button sometimes only works once
- I cant come back on the same place before i click my button

Any help, critics, amilioration at all, will be appriciated !

Thank's

Philippe


+-------------------------------------------------------------------+
|Filename: vba_to_xld.zip |
|Download: http://www.excelforum.com/attachment.php?postid=3585 |
+-------------------------------------------------------------------+

--
Hellboy
------------------------------------------------------------------------
Hellboy's Profile:

http://www.excelforum.com/member.php...o&userid=20879
View this thread: http://www.excelforum.com/showthread...hreadid=385878



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBE (visual Basic Editor) variable


Hi

Thanks for your reply. You gave me a good reference for my question and
i did some modifications base on it. But i feel that my xla file will
not pass the reliability test. I am not a vb programmer, so class
module, or objet or collection, are think's that i dont fully
undurstand.

If you feel that you can improve or teel me how to do so and have the
time to do so, i am attaching my new file with this post.

Thanks again.

Philippe


+-------------------------------------------------------------------+
|Filename: vba_to_xld.zip |
|Download: http://www.excelforum.com/attachment.php?postid=3589 |
+-------------------------------------------------------------------+

--
Hellboy
------------------------------------------------------------------------
Hellboy's Profile: http://www.excelforum.com/member.php...o&userid=20879
View this thread: http://www.excelforum.com/showthread...hreadid=385878

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
Opening Visual Basic Editor SteveG[_5_] Excel Discussion (Misc queries) 0 March 19th 09 01:46 PM
Visual Basic Editor Ron Rueter Excel Discussion (Misc queries) 3 October 28th 08 02:48 PM
Visual basic editor Answerfactory Excel Discussion (Misc queries) 3 October 9th 06 09:13 PM
Visual Basic Editor Question??? Bob Phillips[_6_] Excel Programming 0 May 5th 05 09:56 AM
Visual Basic Editor Question??? Bob Phillips[_6_] Excel Programming 0 May 5th 05 09:55 AM


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