Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() got a slight problem pasting info from 1 sheet to a specific place on another sheet. heres what i tried (which doesnt work!) Sub Macro1() Dim endcell As Integer Dim endcell2 As Integer Sheet1.Select endcell = Range("A1").End(xlDown).Row Range("A1:B" & endcell).Select Selection.Copy' copys just the 2 colums of info Sheet3.Select endcell2 = Range("A1").End(xlDown).Row endcell2 = endcell2 + 1 newcell = endcell + endcell2 ActiveSheet.Paste Destination:=Worksheets("Sheet3").Range("A & endcell2 :B & newcell") tried to copy in the information into sheet3, (sheet3 already contains info). Have no problem doing it when no info is in sheet3, but have probs when there is already info in. pls can anyone help? thanks End Sub -- s_ali_hassan ------------------------------------------------------------------------ s_ali_hassan's Profile: http://www.excelforum.com/member.php...o&userid=35325 View this thread: http://www.excelforum.com/showthread...hreadid=552200 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() wups, worked it out myself! wrong speechmarks -- s_ali_hassan ------------------------------------------------------------------------ s_ali_hassan's Profile: http://www.excelforum.com/member.php...o&userid=35325 View this thread: http://www.excelforum.com/showthread...hreadid=552200 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
pasting screendump picture in VBA form | Excel Programming | |||
Pasting ActiveX or Form Controls | Excel Programming | |||
Is it possible to open the VBA form with a link in a sheet and to pass variable from a cell to the VBA form? | Excel Programming | |||
Problem pasting a row from a hidden sheet to the first free row on another visible sheet | Excel Programming | |||
Pasting to Sheet | Excel Programming |