Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default pasting form 1 sheet to another


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default pasting form 1 sheet to another


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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
pasting screendump picture in VBA form R.G. Vervoort Excel Programming 2 April 15th 05 09:29 AM
Pasting ActiveX or Form Controls jcliquidtension Excel Programming 1 December 26th 04 11:40 AM
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? Daniel[_14_] Excel Programming 1 August 29th 04 01:20 PM
Problem pasting a row from a hidden sheet to the first free row on another visible sheet Didier Poskin Excel Programming 2 January 10th 04 01:18 AM
Pasting to Sheet Nigel[_7_] Excel Programming 2 November 14th 03 06:03 PM


All times are GMT +1. The time now is 10:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"