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: 262
Default Error moving sheets between workbooks

Hi

I've written a macro which generates a set of reports based on a report
template and a database imported from Access; this populates the template
with each row and then exports it to a destination file according to the name
of the city and the date (through variables).

I am doing this with a loop function, however this works for a certain
number of iterations but then breaks ("Move method of Worksheets object
failed"), however the number of times this works correctly before breaking is
not always the same and the process is identical for each iteration. I'm not
sure I understand the reason why as the first iterations work with no
problems and at the point where the code breaks down all of the variables are
set correctly - perhaps it is a memory problem?

Also I notice that if I try to move the sheet manually it does not allow me
to move it to the file that the macro should move it to though it will let me
move it to a different workbook.

Any ideas on what might be happening much appreciated.
 
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
Moving Data between sheets in the same workbook and moving data between Workbooks. Alison Brown Excel Worksheet Functions 0 February 10th 09 01:03 AM
Sumproduct and moving sheets between workbooks error Tim879 Excel Discussion (Misc queries) 2 September 22nd 08 10:14 PM
Moving workbooks between folders Ozzie Excel Discussion (Misc queries) 3 January 25th 06 09:25 AM
moving workbooks kmd Excel Discussion (Misc queries) 1 October 26th 05 12:21 AM
Moving sheets between workbooks [email protected] Excel Discussion (Misc queries) 3 December 27th 04 07:14 PM


All times are GMT +1. The time now is 03:02 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"