Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi All, Here is my problem: I am copying a range (say A1:C150 ) then I am activating another workbook and selecting a sheet (sheet1) and find first empty column and paste. Can someone please help. Here is my code: Sub test3() Dim lastcolumn As Range Range("A1:E150").Select Application.CutCopyMode = False Selection.Copy Windows("DataAll.xls").Activate ActiveWindow.WindowState = xlNormal Sheets("Sheet2").Select ActiveSheet.lastcolumn = Cells(1, Column.count).End(xlLeft).Column Cells(lastcolumn + 1, 1).PasteSpecial Paste:=xlValues _ , Operation:=xlNone, SkipBlanks:=False, Transpose:=False End Sub the above code doesn't work thanks Syed -- saziz ------------------------------------------------------------------------ saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350 View this thread: http://www.excelforum.com/showthread...hreadid=494770 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VB help SELECT COLUMN / PASTE FORMULA'S | Excel Discussion (Misc queries) | |||
Select first empty row in a column | Excel Discussion (Misc queries) | |||
How to set macro to Paste Special Value to next empty column | Excel Worksheet Functions | |||
What is function to select only not empty cells in a column (like SHIFT+END+ArrowDown or UP) | Excel Programming | |||
Find Empty Column and paste cell values | Excel Programming |