Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I'm using Excel 2002 I'm trying to write a code to copy and paste special a range of data in the next empty cell. Therefore if cell j5 has data it would start pasting it in only k5 and so on. This is what I have so far but its pasting in all the columns where row 5 is blank: If Range("j5").Value = " " Then End If ActiveWindow.SmallScroll ToRight:=-1 Range("D5:D93").Select Selection.copy ActiveWindow.SmallScroll Down:=-123 ActiveWindow.SmallScroll ToRight:=15 ActiveWindow.SmallScroll Down:=-15 Range("j5").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False End If Else I would greatly appreciate any help with this. Thanks in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy and paste using vb code | Excel Discussion (Misc queries) | |||
copy and paste formula using vb code | Excel Discussion (Misc queries) | |||
VBA-code for search,copy and paste | Excel Discussion (Misc queries) | |||
CheckBox Code to copy & paste range | Excel Discussion (Misc queries) | |||
copy and paste code problem | Excel Worksheet Functions |