Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Testing for Code in a Workbook

If I open a workbook in a macro, how do I check that workbook to see if it
contains VBA code?

--
Bill @ UAMS
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default Testing for Code in a Workbook

if you set your security to medium before you open it, it will bring
up the warning that the workbook contains macros, & do you want to
enable them?
:)
susan


On Aug 21, 2:29*pm, BillCPA <Bill @ UAMS wrote:
If I open a workbook in a macro, how do I check that workbook to see if it
contains VBA code?

--
Bill @ UAMS


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default Testing for Code in a Workbook

Chip Pearson has a function you may be able to use, see Testing If A
VBComponent Exists at:

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

Cliff Edwards


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Testing for Code in a Workbook

This should help you get started

http://www.cpearson.com/excel/vbe.aspx
--
HTH,
Barb Reinhardt



"BillCPA" wrote:

If I open a workbook in a macro, how do I check that workbook to see if it
contains VBA code?

--
Bill @ UAMS

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
Code for testing whether a cell or row is highlighted? J@Y Excel Programming 4 May 28th 07 07:08 PM
Checklist for testing code? M. Authement Excel Programming 2 April 25th 06 06:49 PM
unit testing code using vba Eric[_27_] Excel Programming 0 December 5th 05 03:51 AM
Testing code for oldest version... John Keith[_2_] Excel Programming 1 October 25th 05 03:16 PM
testing the state of a checkbox in vba code Paul James[_3_] Excel Programming 10 December 5th 03 07:55 PM


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