Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Detecting VBA code

Thanks for the suggestion on Chip Pearson's website.
I've managed to write the code to detect VBA contained
within sheets. However before it can run it requires that
I make a change to the references section contained in the
tools dropdown of the VBE. Chip discusses this.

Anybody know how to do this as part of the code so that
people who run my tool can have this change done
automatically..??

Chris
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Detecting VBA code

Actually, you don't

Instead of making your declaration like:

Dim VBComp As VBComponent

make it like
Dim VBComp As Object

Do this for any objects in the Visual Basic Extensions library.

--
Regards,
Tom Ogilvy

Chris Gorham wrote in message
...
Thanks for the suggestion on Chip Pearson's website.
I've managed to write the code to detect VBA contained
within sheets. However before it can run it requires that
I make a change to the references section contained in the
tools dropdown of the VBE. Chip discusses this.

Anybody know how to do this as part of the code so that
people who run my tool can have this change done
automatically..??

Chris



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
Detecting Calc On or Off dhstein Excel Discussion (Misc queries) 5 April 22nd 09 10:41 AM
Detecting Duplicate Sums - Worksheet code [email protected] Excel Discussion (Misc queries) 0 September 27th 07 02:20 AM
Detecting Numbers in a cell KH_GS Excel Worksheet Functions 3 May 5th 06 02:07 AM
Detecting absentees gracegift Excel Discussion (Misc queries) 7 December 27th 04 11:35 PM
Detecting a color Duncan Help Excel Worksheet Functions 5 December 9th 04 08:12 PM


All times are GMT +1. The time now is 10:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"