LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 125
Default Need Help Making a Macro Repeat Until All Rows Are Processed

Sorry I couldn't get back to you sooner, I work odd days and hours. I'm glad
you got it to work. The reason it did that is because you switch to the
barcode sheet near the end of the code, when it loops it tries to rund the
macro on the current page which is wrong, you have to go back and select your
original "Data" sheet for it to start the process over, I didn't catch that
when i replied, good job not giving up though! It's hard enough to do this
stuff but even harder when you don't have all of the data to test with.

-John

" wrote:

Well... I kept playing with this. I was finally able to make it work
if I inserted the following "selection" commands before the End Loop
command.

.....
'Select cell A1 of the Data worksheet (to restart back to the beginning
of the loop):
Sheets("Data").Select
Range("A1").Select
Loop

I'm not sure why this works... why would you need to select the data
worksheet in order to restart the macro?

Thanks,
Jessi


 
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
repeat two rows macro please jwmbem New Users to Excel 3 March 9th 08 04:02 PM
need macro :repeat rows at top jwmbem New Users to Excel 0 March 8th 08 07:33 PM
Display current sheet name being processed in macro Ann New Users to Excel 5 April 17th 07 01:18 PM
repeat macro for all rows Rick Billingsley[_2_] Excel Programming 3 November 16th 05 03:29 PM
Foreign characters aren't processed in a macro Paul hampson Excel Programming 0 August 12th 04 01:43 PM


All times are GMT +1. The time now is 09:17 PM.

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"