LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Sheets won't move


I've developed a large workbook with a macro that creates multiple copies of
three template sheets and fills them in using data from various other hidden
sheets, then extracts 15 datasheets from a source pivot table, then moves all
these new sheets into a new workbook, which is then saved as a report,
leaving the original workbook in its original state.

The macro was working, with a few possible bugs, but now it's suffering
complete failure. It successfully moves most of the sheets but then after
moving seven of the datasheets, the macro fails (no chance to debug) halfway
through moving the data sheets.

Bizarrely, I then cannot manually move them (no error, Excel just does
nothing with it) so I'm sure it's not a coding error. I could still copy the
sheet, so I changed the macro to do this and delete the original, but it
still fails, oddly enough at the same place.

Any ideas why this is happening? Or even any clues as to what I should be
looking for? I'm quite new to VB so I may have missed something fundamental
in the way I've set this up. For example, I'm setting WB publicly as the
active workbook at the beginning of the macro, and referring to it
throughout, but I've no idea if I should be doing this as I'm effectively
increasing the memory requirements of WB as I go along. This is certainly my
first instinctive thought on it.
 
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
Move through the sheets of a workbook Steve[_91_] Excel Programming 2 September 5th 07 11:38 PM
Cannot Move or Copy Sheets Toys Excel Discussion (Misc queries) 1 June 20th 07 12:59 PM
Use Tab key to move between tab sheets Lisa Excel Worksheet Functions 0 January 5th 06 04:06 PM
sequential move across sheets asante_za Excel Programming 1 December 31st 05 09:26 PM
Move data to different sheets Ronny Hamida[_2_] Excel Programming 1 September 15th 04 12:57 AM


All times are GMT +1. The time now is 12:53 AM.

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"