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: 1
Default Need Help With Creating A Loop


Below is a macro I am using. I need help with creating a loop once the
macro is ran it will move down to the next row and continue until it
reaches down to the row that is empty. This is the very first section
that my macro runs. I have to manually select the first row which is
B2:BG2. I want to be able to hit the button and it automatically
select B2:BG2 run all the way through the macro then start over again
but move down to C2:CG2 and so on. Also, I would like the loop to stop
once it reaches the last row that has data in it or stop as soon as it
reaches the first row that is empty. If any one could help I would
appreciate it. Thank You in advance.

Sub BAGAFEDEXEXPEDITES()
Application.ScreenUpdating = False
Set RangeName = Selection
Selection.Copy
Workbooks.Open ("L:\BAGA\02 PACKING SLIP TEMPLATES\BAGA BLANK
FEDEX.xls")
Windows("BAGA BLANK FEDEX.xls").Activate
Range("H15").Activate
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Run "BAGAFEDPLTFRM"
End Sub

Thank You,
Zero


--
zero635
------------------------------------------------------------------------
zero635's Profile: http://www.excelforum.com/member.php...o&userid=24802
View this thread: http://www.excelforum.com/showthread...hreadid=480185

 
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
Help with creating a loop Woodi2 Setting up and Configuration of Excel 1 April 19th 09 09:10 PM
creating a loop JakeShipley2008 Excel Discussion (Misc queries) 2 September 9th 08 02:17 PM
Creating a loop JakeShipley2008 Excel Discussion (Misc queries) 1 September 8th 08 10:26 PM
Creating a loop Ibuprofen Excel Programming 1 October 26th 05 04:41 AM
Creating a For Loop Justin Ragsdale Excel Programming 5 May 23rd 04 10:40 PM


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