Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello -
I have the security level of Excel set to Medium so that it asks me about enabling macros when I open a file that contains macros. The strange thing is that I did a "Save as..." and then used the following commands to strip out all the code: Set VBCodeModule = ActiveWorkbook.VBProject.VBComponents("Sheet2").Co deModule With VBCodeModule lStartLine = 1 lHowManyLines = .CountOfLines .DeleteLines lStartLine, lHowManyLines End With So there shouldn't be any more macro code in that spreadsheet but every time I open the file Excel asks me about whether I want to enable macros? How can I turn that off? Thanks, Joe |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello -
Unfortunately the code was in Sheet2 of that spreadsheet and I cannot delete that. Thanks, Joe |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
go to each such module and do Ctrl+A, then hit delete
Then save the file. -- Regards, Tom Ogilvy "Joe HM" wrote in message ups.com... Hello - Unfortunately the code was in Sheet2 of that spreadsheet and I cannot delete that. Thanks, Joe |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro warning despite no macros in document | Excel Discussion (Misc queries) | |||
Macro warning even though macros have been removed. | Excel Discussion (Misc queries) | |||
macro warning - but no macros | Excel Discussion (Misc queries) | |||
Macro warning when no macros | Excel Programming | |||
Macro warning when no macros in workbook | Excel Programming |