#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Macro

I have a macro that upgrades a spreadsheet for a new weeks input. All it
actually does it moves down present weeks sales to the past weeks sales and
I have the new week with empty cells. The weeks are in the columns,
Mon-Fri, and the sellers are in the rows. Several cells are Merged and
every day has a separate column for the accumulative sales for that day.
The spreadsheet also has If formulas for every day that prevent the
spreadsheet to count the accumulative for more days than Today's date.
Simple so far. I've used this spreadsheet for a year, but now I get an error
message when I run the macro. It give a number of reasons why the file
couldn't be accessed and the one that blows my mind is: Make sure the file
name does not contain any of the following characters: < ? [ ] :
Statsgrid, macro.xls. "Statsgrid, macro.xls" is the name of the master file
for this worksheet. ?????

Thank in advance.


  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Macro

Something has changed. Macros don't run for a year then
just start giving error messages. Something has changed to
make the macro give error messages. Is it the same
message(s) all the time or different ones each time.
think. what changes did you make to the file or macro just
prior to the macro start giving the error messages.

-----Original Message-----
I have a macro that upgrades a spreadsheet for a new

weeks input. All it
actually does it moves down present weeks sales to the

past weeks sales and
I have the new week with empty cells. The weeks are in

the columns,
Mon-Fri, and the sellers are in the rows. Several cells

are Merged and
every day has a separate column for the accumulative

sales for that day.
The spreadsheet also has If formulas for every day that

prevent the
spreadsheet to count the accumulative for more days than

Today's date.
Simple so far. I've used this spreadsheet for a year, but

now I get an error
message when I run the macro. It give a number of

reasons why the file
couldn't be accessed and the one that blows my mind is:

Make sure the file
name does not contain any of the following characters: <
? [ ] :
Statsgrid, macro.xls. "Statsgrid, macro.xls" is the name

of the master file
for this worksheet. ?????

Thank in advance.


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Macro

I know that I have not changed anything in the VBA codes, possibly some
other changes I don't know I've done. When this msg first appeared I simply
recorded a new macro and renamed the file. That worked out fine. One time!
Now I'm getting the same error message as before, but with the new file name
instead. I am getting the same error message all the time.
One time I simply unprotected the sheet after the error msg, right clicked
on the macro button, choose edit the macro, but didn't do anything just
closed the VBA window and run the macro in an unprotected sheet. That
worked, but I found some data had got lost and it was too early to run to
run the macro. I closed the workbook and didn't save. Next time I opened
the workbook I got the same error msg when I run the macro the first time.

This macro exists in 5 workbook and saves me some great amount of time. It
is very important for me. Even if I made a change in one workbook, the next
week I'm opening a new workbook from the template with a fresh macro. What
I don't understand is why I get an error msg about a file that is just
stored together with other masters. That file does have the original code,
but it is not actively used, just stored.

Thanks


wrote in message
...
Something has changed. Macros don't run for a year then
just start giving error messages. Something has changed to
make the macro give error messages. Is it the same
message(s) all the time or different ones each time.
think. what changes did you make to the file or macro just
prior to the macro start giving the error messages.

-----Original Message-----
I have a macro that upgrades a spreadsheet for a new

weeks input. All it
actually does it moves down present weeks sales to the

past weeks sales and
I have the new week with empty cells. The weeks are in

the columns,
Mon-Fri, and the sellers are in the rows. Several cells

are Merged and
every day has a separate column for the accumulative

sales for that day.
The spreadsheet also has If formulas for every day that

prevent the
spreadsheet to count the accumulative for more days than

Today's date.
Simple so far. I've used this spreadsheet for a year, but

now I get an error
message when I run the macro. It give a number of

reasons why the file
couldn't be accessed and the one that blows my mind is:

Make sure the file
name does not contain any of the following characters: <
? [ ] :
Statsgrid, macro.xls. "Statsgrid, macro.xls" is the name

of the master file
for this worksheet. ?????

Thank in advance.


.



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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Excel Macro Issue Trying to autorun Macro Upon Opening Worksheet wyndman Excel Programming 2 May 25th 04 06:59 PM
macro to delete entire rows when column A is blank ...a quick macro vikram Excel Programming 4 May 3rd 04 08:45 PM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


All times are GMT +1. The time now is 07:13 AM.

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

About Us

"It's about Microsoft Excel"