Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Repeat a macro until the last line is empty or repeat it 1400 time

I have done a macro that insert 20 lines, do some copying exercises and stops
1 line down the insertet ones. Instead of repeat the command run for about
1400 times I like to configure a "loop" that runs this macro until there's no
more lines to copy.
Another solution could be to repeat the macro 1400 times, maybe that it is
easier to write a WBA code for.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Repeat a macro until the last line is empty or repeat it 1400 time

Can you post the code for a single iteration of this loop so that we can
work on that?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"marita" wrote in message
...
I have done a macro that insert 20 lines, do some copying exercises and
stops
1 line down the insertet ones. Instead of repeat the command run for about
1400 times I like to configure a "loop" that runs this macro until there's
no
more lines to copy.
Another solution could be to repeat the macro 1400 times, maybe that it is
easier to write a WBA code for.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Repeat a macro until the last line is empty or repeat it 1400

I found the code for a repeat macro (specific times) in a similar question
and that helped me. I´t's not so sofisticated solution but good enogue.
XXX=name of this repeat macro, NNN=name of the macro I like to repeat.

Sub XXX()
For c = 1 To 1400
Call NNN
Next c
End Sub

---------------------------------------------------------------------------------------------

"Bob Phillips" wrote:

Can you post the code for a single iteration of this loop so that we can
work on that?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"marita" wrote in message
...
I have done a macro that insert 20 lines, do some copying exercises and
stops
1 line down the insertet ones. Instead of repeat the command run for about
1400 times I like to configure a "loop" that runs this macro until there's
no
more lines to copy.
Another solution could be to repeat the macro 1400 times, maybe that it is
easier to write a WBA code for.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Repeat a macro until the last line is empty or repeat it 1400

You might find that that messes up if you insert in the middle of the data
that you are looping through. For that reason it is better to move bottom up


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"marita" wrote in message
...
I found the code for a repeat macro (specific times) in a similar question
and that helped me. I´t's not so sofisticated solution but good enogue.
XXX=name of this repeat macro, NNN=name of the macro I like to repeat.

Sub XXX()
For c = 1 To 1400
Call NNN
Next c
End Sub

---------------------------------------------------------------------------------------------

"Bob Phillips" wrote:

Can you post the code for a single iteration of this loop so that we can
work on that?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"marita" wrote in message
...
I have done a macro that insert 20 lines, do some copying exercises and
stops
1 line down the insertet ones. Instead of repeat the command run for
about
1400 times I like to configure a "loop" that runs this macro until
there's
no
more lines to copy.
Another solution could be to repeat the macro 1400 times, maybe that it
is
easier to write a WBA code for.






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
Start/Repeat/Stop Macro at specific time/interval andy Excel Programming 10 August 30th 07 01:38 AM
repeat macro after time interval MikeM Excel Programming 1 March 18th 07 09:33 AM
repeat macro until empty space in next column Sabba Efie Excel Worksheet Functions 1 August 15th 06 09:08 PM
Repeat Macro until Empty Cell Reached clpncsg Excel Programming 19 October 1st 05 02:14 AM
Title Cut Off if Rows to Repeat & Columns to Repeat are Both Selec unibaby Excel Discussion (Misc queries) 2 August 24th 05 04:29 PM


All times are GMT +1. The time now is 08:37 AM.

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"