Hi all,
I've been experiencing this one problem with a file which pulls worksheets in from another file via macro, here's the weird thing:
If I open the file and make some modifications then save it, it's fine.
If I open the file and run a particular macro, then try and save, it crashes (Excel is not responding, closing program etc.)
It crashes whatever kind of saving I try to do. Save As, Autorecover etc...
The macro basically takes an external workbook and copies a particular sheet from the external workbook to this workbook.
Does Excel have some strange constraint when it comes to adding/deleting worksheets via VBA?
Here's the snippet of code that seems to be causing the problem:
c.Offset(0,1) is the path to the external workbook
c.Offset(0,2) is the worksheet name it should pull
c.Offset(0,3) is the new name it should assign the copied worksheet in the current workbook.
Thanks and regards![]()
Please Login or Register to view this content.
Duncan
Bookmarks