Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Next Function in Array

I have a macro that I am running in Excel which is (1) retrieving data from a
database, (2) making a copy of the worksheet (3), copy and pasting the
values, (4) and then repeating the same process over and over again.

At the beginning of the macro I am declaring an Array of 43 items and then I
am using a "Next" statement to cycle through the each item. It is working
just fine until it gets to the last item in the array. At that point it will
not make a copy of the worksheet and even if you cancel the macro and try to
do it manually it will not copy the worksheet. You can create a new blank
worksheet, but you can' copy one. Any idea what would be causing this. The
number or worksheets in the workbook at the time of the error is 48, which I
don't believe is the problem because I'm sure I've had files with more
worksheets than 48. Your help would be greatly appreciated.


Reply
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
OR function in array-entered IF function veggies27 Excel Worksheet Functions 8 March 11th 08 06:32 PM
AND in an array function? Vince Excel Worksheet Functions 2 April 17th 06 05:46 PM
Is there an array function or something like it? nyys Excel Worksheet Functions 0 January 12th 06 07:47 PM
Help with an array function malik641 New Users to Excel 4 June 10th 05 05:09 PM
UDF Array function Dave Peterson[_3_] Excel Programming 0 July 10th 03 04:30 AM


All times are GMT +1. The time now is 06:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"