Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help deleting embedded Macro reference

2 views
Skip to first unread message

Treeskier

unread,
Mar 18, 2004, 11:59:03 PM3/18/04
to
I built a spreadsheet using a preexisting spreadsheet as a base. The
base spreadsheet may have had a macro at some time as the new
spreadsheet now gives me the "spreadsheet contains macros" warning. I
can't find any embedded macro however. I can find no reference to a
macro in the macro editor. I can find no code in the VB editor. There
is no hidden workbook. There are no ActiveX controls. There is one
list box from the forms control toolbar that has been copied about ten
times but The control remains functional when the macros are disabled.


I would like to delete the problem rather than just get around it by
changing the security setting.

Any help would be appreciated


Thanks


Dave Hawley

unread,
Mar 19, 2004, 12:11:53 AM3/19/04
to
Hi Treeskier

Go into the VBE and from the "Project Explorer" ensure there are no
Modules. If there are, delete them. Also, while in the VBE double click
each Worksheet and "ThisWorkbook" to ensure these are empty.

***** Posted via: http://www.ozgrid.com
Excel Templates, Training & Add-ins.
Free Excel Forum http://www.ozgrid.com/forum *****

Ken Wright

unread,
Mar 19, 2004, 3:17:45 PM3/19/04
to
Same advice, but in case you are not used to the VBE

You need to delete any empty modules that housed those macros.

Hit ALT+F11 and this will open the VBE (Visual Basic Editor)
Top left you will hopefully see an explorer style pane. Within this pane you
need to search for
your workbook's name, and when you find it you may need to click on the + to
expand it. Within
that you should see the following:-

VBAProject(Your_Filename)
Microsoft Excel Objects
Sheet1(Sheet1)
Sheet2(Sheet2)
Sheet3(Sheet3)
ThisWorkbook
Modules
Module1
Module2
etc etc (You may have just 1 of these)

If you have named your sheets then those names will appear in the brackets above
as opposed to
what you see at the moment in my note.

Right click on the modules and select remove. When prompted with a question re
exporting, just
hit no. Then hit File / Close and return to Microsoft Excel and save the file.


--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"Treeskier" <ttorg...@comcast.net> wrote in message
news:Onh2h7WD...@TK2MSFTNGP11.phx.gbl...


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.622 / Virus Database: 400 - Release Date: 13/03/2004


Treeskier

unread,
Mar 19, 2004, 8:40:00 PM3/19/04
to
Thank You very much gentlemen...that got me most of the way and I got the
rest...thanks again!
Tim

"Ken Wright" <ken.w...@NOSPAMntlworld.com> wrote in message
news:OJhI88eD...@TK2MSFTNGP11.phx.gbl...

0 new messages