ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Testing for Code in a Workbook (https://www.excelbanter.com/excel-programming/415930-testing-code-workbook.html)

BillCPA

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

Susan

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



Barb Reinhardt

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


ward376

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




All times are GMT +1. The time now is 07:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com