Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How do I stop copying, when the copy reaches B18:G18?
Here is the VBA that I use. It copy's data from row B5:G5 to beginning line B8. everytime the command copy button is pushed. I want the copying to stop at row B18 then park the cursor everytime at A1 With Thanks Steve --------------------------------------------------------------------------------------- Sub CopyRange2() Sheets("Sheet1").Range("B8").Select 'find your empty cell Do Until ActiveCell.Formula = "" ActiveCell.Offset(1, 0).Select Loop ActiveCell.Formula = Range("B5:G5").Copy Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=False Application.CutCopyMode = True 'Stop copying when the copying reaches B18:G18 Range("A1").Select End Sub ------------------------------------------------------------------ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to Stop calculation on one specific sheets only | Excel Worksheet Functions | |||
Stop the 'intelligent' copying? | Excel Discussion (Misc queries) | |||
Stop the 'intelligent' copying? | Excel Discussion (Misc queries) | |||
Stop specific cell from recalculating? | Excel Worksheet Functions | |||
A way to stop or limit copying ? | Excel Programming |