Greetings all, thank you for your help in advance!
I have a macro that creates a separate .xls file for each of my worksheets.
That macro uses cell B1, the worksheet name, and cell B13 to create the file's name.
For example if in B1 the value was 1000 and the worksheet was named Charles and B13 has the value of GL the filename would be 1000_Charles_GL.xls
My problem is that if either B1 or B13 is in the DATE format, I get Run-time error 1004.
If you want to see it for yourself, I did a screen grab:
http://dclicc.squarespace.com/storag...ments/1004.bmp
I think the problem is that windows (I have XP) will not allow a file to be created with "/" marks, and excel wants to use them? I have tried changing the format to dates with dashes, but it doesn't help. If I change the catergory/format to general it will work, but of course that would give me a useless number. I DO NEED the date in the file name.
I posted the macro below if that will help.
Again, thanks!
- Skot
Bookmarks