Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Do Until Loop

I have the following macro

Application.CutCopyMode = Fals
Selection.Cop
Windows("Attorney Net Plotting by Placement 2003_11.xls").Activat
Application.Run "'Plotting Macros.XLS'!PasteValue
Windows("NET AttorneyBatchTrack 2003_11.xls").Activat
ActiveCell.Offset(24, 0).Range("A1").Selec
Application.CutCopyMode = Fals
Selection.Cop
Windows("Attorney Net Plotting by Placement 2003_11.xls").Activat
ActiveCell.Offset(0, 1).Range("A1").Selec
Application.Run "'Plotting Macros.XLS'!PasteValue
Do Until ActiveCell.Value = "
Windows("NET AttorneyBatchTrack 2003_11.xls").Activat
ActiveCell.Offset(0, 1).Range("A1").Selec
Application.CutCopyMode = Fals
Selection.Cop
Windows("Attorney Net Plotting by Placement 2003_11.xls").Activat
ActiveCell.Offset(-1, 2).Range("A1").Selec
Application.Run "'Plotting Macros.XLS'!PasteValue
Loo
End Su

The problem is that when it reaches the empty cell, it will copy and paste that information into the new workbook before stopping. I want it to recognize that the active cell is empty and stop there, before it pastes the information. Any suggestions?
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
Loop Christina Excel Discussion (Misc queries) 6 March 23rd 10 12:04 AM
Find loop doesn't loop JSnow Excel Discussion (Misc queries) 2 June 24th 09 08:28 PM
Any way to loop this in VBA? Bill (Unique as my name) Excel Discussion (Misc queries) 5 February 22nd 06 11:04 PM
Worksheet_Change - loop within a loop bgm Excel Programming 1 January 19th 04 01:27 PM
HELP!!!! Can't stop a loop (NOT an infinite loop) TBA[_2_] Excel Programming 3 December 14th 03 03:33 PM


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