Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 434
Default VB macro code does not save

hi, Mary !

- what happens *if* you close and (re)open your file just after the update ?

- if (re)opening "reverts" the update...
how can you be sure (and confirm that) the file is (really) saved ?

- revise any code / procedure which could "cancel" the '_beforesave' event
(within ThisWorkbook code module)

hth,
hector.

__ OP __
I've inherited a spreadsheet with a macro that needs to be updated.
We are moving data from one spreadsheet to another using this:
ws.Cells(i, 4) = aLine(3)
ws.Cells(i, 5) = aLine(4)
ws.Cells(i, 6) = aLine(6)
ws.Cells(i, 7) = aLine(7)
All I need to do is update the numbers and it works correctly.
But when I go into that spreadsheet the next day, the number have reverted back to the originals.
Any ideas??? I confirmed that the file was saved and it appeared to work correctly
when it was copied over for another department to access.
Any help would be greatly appreciated!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code for running macro on save santaviga Excel Programming 0 January 23rd 08 01:28 AM
Code to run macro on save santaviga Excel Programming 0 January 23rd 08 01:16 AM
How to code the Macro to save and close a file? Eric Excel Discussion (Misc queries) 7 June 10th 07 03:28 PM
Macro Save As Code??? Chris Watson Excel Worksheet Functions 2 January 28th 06 10:40 AM
Macro VBA code to name Save-As file Dolores Excel Worksheet Functions 7 December 28th 05 11:24 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"