Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to paste data to the right most empty cell on row 32, starting in
column B. Here is what I got so far: Dim FirstEmpty6 As Range Dim StartCell6 As Range With ActiveSheet Set StartCell6 = .Range("b32") If IsEmpty(StartCell6.Value) Then Set FirstEmpty6 = StartCell6 ElseIf IsEmpty(StartCell6.Offset(0, 1).Value) Then Set FirstEmpty6 = StartCell6.Offset(0, 1) Else Set FirstEmpty6 = StartCell6.End(xlToRight).Offset(0, 1) FirstEmpty6.Select Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _ xlNone, SkipBlanks:=False, Transpose:=False End If End With ----------------------------------------------------------------------------- Less Spam Better enjoyable experience Visit : news://spacesst.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Trouble Pasting | Excel Discussion (Misc queries) | |||
Pasting data top 1st empty cell in range | Excel Discussion (Misc queries) | |||
Pasting on next empty cell | Excel Programming | |||
Selecting and pasting to an empty cell | Excel Programming |