A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Vanishing VB



 
 
Thread Tools Display Modes
  #1  
Old August 16th, 2004, 05:37 PM
BillCPA
external usenet poster
 
Posts: n/a
Default Vanishing VB

When I opened a spreadsheet today, all of the VB code was gone. The
spreadsheet is for the month of August, is used daily, and contains (or used
to contain) about half a dozen macros, including _Open and _BeforePrint
entries. They were all there on Friday.

I'm certain the daily users are not knowledgeable enough to remove the code
(I have the individual worksheets locked, but nothing else), and it seems
highly unlikely they could have done it by accident. A friend of mine
suggested virus software might have been run over the weekend. But the
spreadsheet is in the same folder as all of the spreadsheets for previous
months, and all of the code is still in those spreadsheets. So it doesn't
seem like virus software would have singled out this one spreadsheet.

I'm baffled. Any ideas?

--
Bill @ UAMS
  #2  
Old August 16th, 2004, 09:44 PM
Dave Peterson
external usenet poster
 
Posts: n/a
Default

Just guesses...

Any chance any user got a warning that excel opened the file with errors and was
able to recover the file--but macros (and possibly formatting) may have been
lost?

Even though protecting the project won't stop the really determined, it will
stop most.

Inside the VBE:
tools|VBAProject Properties|Protection Tab
Lock it for viewing and give it a memorable password.

Very, very, very rarely: I've seen posts that say macros were stripped out by
the antivirus software itself. I've never seen that in real life, though.



BillCPA wrote:

When I opened a spreadsheet today, all of the VB code was gone. The
spreadsheet is for the month of August, is used daily, and contains (or used
to contain) about half a dozen macros, including _Open and _BeforePrint
entries. They were all there on Friday.

I'm certain the daily users are not knowledgeable enough to remove the code
(I have the individual worksheets locked, but nothing else), and it seems
highly unlikely they could have done it by accident. A friend of mine
suggested virus software might have been run over the weekend. But the
spreadsheet is in the same folder as all of the spreadsheets for previous
months, and all of the code is still in those spreadsheets. So it doesn't
seem like virus software would have singled out this one spreadsheet.

I'm baffled. Any ideas?

--
Bill @ UAMS


--

Dave Peterson

  #3  
Old August 17th, 2004, 03:13 PM
BillCPA
external usenet poster
 
Posts: n/a
Default

The user got an error message yesterday (Monday) when she open the
spreadsheet. She doesn't remember what the message was, but she 'recovered'
the spreadsheet. She wasn't, however, the one who last used the spreadsheet
on Friday. I have asked her to check with the last Friday user to see if
something unusual happened.

They really don't do anything except open the spreadsheet, input data, maybe
do a search (using a macro) for something specific, print, and close. My
guess would be that somehow the machine went off with the spreadsheet still
open. Is it common (or at least 'not uncommmon') when you 'recover' a
spreadsheet that the macros don't come back?

Bill @ UAMS


"Dave Peterson" wrote:

Just guesses...

Any chance any user got a warning that excel opened the file with errors and was
able to recover the file--but macros (and possibly formatting) may have been
lost?

Even though protecting the project won't stop the really determined, it will
stop most.

Inside the VBE:
tools|VBAProject Properties|Protection Tab
Lock it for viewing and give it a memorable password.

Very, very, very rarely: I've seen posts that say macros were stripped out by
the antivirus software itself. I've never seen that in real life, though.



BillCPA wrote:

When I opened a spreadsheet today, all of the VB code was gone. The
spreadsheet is for the month of August, is used daily, and contains (or used
to contain) about half a dozen macros, including _Open and _BeforePrint
entries. They were all there on Friday.

I'm certain the daily users are not knowledgeable enough to remove the code
(I have the individual worksheets locked, but nothing else), and it seems
highly unlikely they could have done it by accident. A friend of mine
suggested virus software might have been run over the weekend. But the
spreadsheet is in the same folder as all of the spreadsheets for previous
months, and all of the code is still in those spreadsheets. So it doesn't
seem like virus software would have singled out this one spreadsheet.

I'm baffled. Any ideas?

--
Bill @ UAMS


--

Dave Peterson


  #4  
Old August 17th, 2004, 11:07 PM
Dave Peterson
external usenet poster
 
Posts: n/a
Default

I'm not sure if it's common, but I've seen it happen.

I'd put my money on the user who ignored the "recovered" message.



BillCPA wrote:

The user got an error message yesterday (Monday) when she open the
spreadsheet. She doesn't remember what the message was, but she 'recovered'
the spreadsheet. She wasn't, however, the one who last used the spreadsheet
on Friday. I have asked her to check with the last Friday user to see if
something unusual happened.

They really don't do anything except open the spreadsheet, input data, maybe
do a search (using a macro) for something specific, print, and close. My
guess would be that somehow the machine went off with the spreadsheet still
open. Is it common (or at least 'not uncommmon') when you 'recover' a
spreadsheet that the macros don't come back?

Bill @ UAMS

"Dave Peterson" wrote:

Just guesses...

Any chance any user got a warning that excel opened the file with errors and was
able to recover the file--but macros (and possibly formatting) may have been
lost?

Even though protecting the project won't stop the really determined, it will
stop most.

Inside the VBE:
tools|VBAProject Properties|Protection Tab
Lock it for viewing and give it a memorable password.

Very, very, very rarely: I've seen posts that say macros were stripped out by
the antivirus software itself. I've never seen that in real life, though.



BillCPA wrote:

When I opened a spreadsheet today, all of the VB code was gone. The
spreadsheet is for the month of August, is used daily, and contains (or used
to contain) about half a dozen macros, including _Open and _BeforePrint
entries. They were all there on Friday.

I'm certain the daily users are not knowledgeable enough to remove the code
(I have the individual worksheets locked, but nothing else), and it seems
highly unlikely they could have done it by accident. A friend of mine
suggested virus software might have been run over the weekend. But the
spreadsheet is in the same folder as all of the spreadsheets for previous
months, and all of the code is still in those spreadsheets. So it doesn't
seem like virus software would have singled out this one spreadsheet.

I'm baffled. Any ideas?

--
Bill @ UAMS


--

Dave Peterson



--

Dave Peterson

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Random Function in VB Jim Campbell New Users 10 August 8th, 2004 12:33 AM
Using BETWEEN in VB Richy Savage Using Forms 1 July 28th, 2004 01:21 PM
VB for Apps Confusion cincode5 General Discussion 2 June 17th, 2004 04:06 PM
accessing chart objects via VB CycleMark Charts and Charting 1 October 27th, 2003 04:52 PM
VB to open the Form window Kevin McClement Worksheet Functions 0 October 17th, 2003 06:52 PM


All times are GMT +1. The time now is 02:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.