Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6039703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:24:30+00:00 2026-05-23T06:24:30+00:00

First three elements of the background: I have created a Excel Template which is

  • 0

First three elements of the background:

  1. I have created a Excel Template which is used, in turn, to create a ‘personalised template’ where user name, user comment, and save data pathnames are embedded in the personalised template.
  2. The personalised template is used to produce monthly workbooks (actually, time sheets)
  3. The template has been created in Office/Excel 2007 running under Vista but the (current) target environment is a corporate network running Office/Excel 2003 under XP Professional. Both templates are therefore created as Excel 2003 templates (which in the development environment run in compatibility mode)

So far, so good – the templates work well in the development environment – the ‘personalisation’ code is in a WorkBook_Open() routine under ‘ThisWorkbook’ – it runs, DELETES ITSELF, and saves as the personalised template. Both templates have the ‘process macros’ in the Sheet1 code (the principle here is that the initial template has macros in ‘ThisWorkbook’ and ‘Sheet1’; the personalised template has macros only in ‘Sheet1’ and the workbooks created from the personalised template have NO MACROS AT ALL.

In ‘beta testing’ I had problems with Excel2000 under XP (fileformats) and on a target machine my WorkBook_Open routine was deleted in the main template (instead of in the personalised template) – even though everything worked OK on Excel2007/Vista.

I felt at the time that the invalid deleting of Workbook_Open was probably a coding error -but whilst researching the issues I found a number of references to ‘Macafee deleting VBA modules’. I did not look into these – but was conscious that the target machine (and environment) run Macafee whilst all my computers run Norton.

Having recoded, I successfully retested in the following:

a) Excel 2007/Vista/Norton
b) Excel 2007/XP Professional/Norton
c) Excel 2000/XP Home/Norton

so felt comfortable to re-test in Excel 2003/XP Professional/Macafee

This time I was watching for it – so, once again, saw the WorkBook_Open routine incorrectly deleted from the main template – unfortunately this was only moments before the USB Memory Key (where the template was running from) was completely destroyed.

So to the question(s) – before I go through the whole process again:

  1. Is there any objective evidence of Macafee removing ‘auto-run’ VBA modules?
  2. If yes, is there any work-around (this template will be use by three people in a enterprise of ten thousand – so there is no way I will be able to influence/modify the security policies!!! 🙁 ) – if there is a problem with Macafee then I will have to re-think the whole thing!
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:24:30+00:00Added an answer on May 23, 2026 at 6:24 am

    I have managed to get to the client machine again – and added a new simple template to prove or otherwise my issue. The new WorkBook_Open routine is…

    Private Sub WorkBook_Open()
        MsgBox "Hello World"
        With ThisWorkbook.VBProject.VBComponents("ThisWorkbook").CodeModule
            .DeleteLines 1, _
            .CountOfLines
        End With
        MsgBox "Goodbye to all that!"
    End Sub
    

    …and this works exactly as required i.e. the routine executes then deletes itself (the second msgbox displays even though the code has been deleted!

    So, this test invalidates my question – McAfee is NOT deleting the routine as part of AV protection – so I am no longer looking for a workaround!

    Now all I need to do is to figure out what my problem really is!

    Thanks for the comments

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have text file with something like first line line nr 2 line three
I have a TabActivity with three tabs defined. The first tab is light-weight and
I've written the following code to create a three-column layout where the first and
I have two DataTables. First is DataTable NameAddressPhones = new DataTable(); with Three columns
I am attempting to create my first OS-level GUI using wxPython. I have the
Is there a way to retrieve first n elements from a Dictionary in C#?
Is there a CIL instruction to exchange the first two elements in the stack?
I've just started debugging my first three line long android app and I can't
Is there any Java library that supports hierarchical column? For example (the first three
I have three columns in my table - company_name, first_name, last_name . In the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.