Y
Yarroll
Hi,
What would be the simplest way to split a workbook (save individually each
worksheet) into separate workbooks?
I tried using the following macro.
Dim x As Worksheet
For Each x In ActiveWorkbook.Sheets
x.Activate
x.Copy
ActiveWorkbook.Close True, "C:\Windows\Pulpit\Data\" & x.Name
Next x
End Sub
--
The workbook to be split was some 25 MB, when running it Excel says "Out of
disk space" (there's some 400 MB free on C drive, also the 25 MB is on C
drive).
My second question is, is there a way to release memory after I use Excel.
My Excel (2000) acts very strange with frequent "Out of memory" messages and
won't shut down except by Ctrl Alt Del. I can't even open VBEditor
sometimes, which is very annoying as I have to open it quite often. The
problem goes away after a reboot, then I have a chance to do what's
necessary with VBE, run a few computation-intensive macros and that's it, no
memory, no VBE anymore until the next reboot. What's up? I've been using
Excel for some years, never saw something like this.
My Personal.xls is some 1.5 MB and much less what it used to be, for I
deleted macros I didn't use that often. I compiled Pesonal.xls. I keep
deleting Temp files and Office Recent files after reboot. Clipboard is
empty, etc. I almost completely gave up using personalized toolbars. It
looks as if Excel is eating fast all available memory even though I shut it
down between tasks, and only reboot helps (for a while). I normally have
some other intensive processes running (non-Office) but no more intensive
than before. I think it has something to do with VBE, if I just run macros
and use Excel without opening VBE, all seems to be fine (well, lasts longer
after reboot), but sooner or later I have to do something in VBE and there
we go again.
Please advise :-((
Thanks. Best regards
Yarroll
What would be the simplest way to split a workbook (save individually each
worksheet) into separate workbooks?
I tried using the following macro.
Dim x As Worksheet
For Each x In ActiveWorkbook.Sheets
x.Activate
x.Copy
ActiveWorkbook.Close True, "C:\Windows\Pulpit\Data\" & x.Name
Next x
End Sub
--
The workbook to be split was some 25 MB, when running it Excel says "Out of
disk space" (there's some 400 MB free on C drive, also the 25 MB is on C
drive).
My second question is, is there a way to release memory after I use Excel.
My Excel (2000) acts very strange with frequent "Out of memory" messages and
won't shut down except by Ctrl Alt Del. I can't even open VBEditor
sometimes, which is very annoying as I have to open it quite often. The
problem goes away after a reboot, then I have a chance to do what's
necessary with VBE, run a few computation-intensive macros and that's it, no
memory, no VBE anymore until the next reboot. What's up? I've been using
Excel for some years, never saw something like this.
My Personal.xls is some 1.5 MB and much less what it used to be, for I
deleted macros I didn't use that often. I compiled Pesonal.xls. I keep
deleting Temp files and Office Recent files after reboot. Clipboard is
empty, etc. I almost completely gave up using personalized toolbars. It
looks as if Excel is eating fast all available memory even though I shut it
down between tasks, and only reboot helps (for a while). I normally have
some other intensive processes running (non-Office) but no more intensive
than before. I think it has something to do with VBE, if I just run macros
and use Excel without opening VBE, all seems to be fine (well, lasts longer
after reboot), but sooner or later I have to do something in VBE and there
we go again.
Please advise :-((
Thanks. Best regards
Yarroll