Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default excel 97: copy and paste values from one worksheet to anotherworksheet

Try this:

Worksheets("FTREGI_FUNDS_MOVE").Range("E2").Copy _
Destination:=Worksheets("SEIACHDisbursement").Rang e("A2")

You can .paste to a worksheet or .pastespecial to a range (or worksheet).

JMCN wrote:

Hello

I created a macro in excel 97 that adds new worksheets within a
workbook and copies and pastes specific cell values from
one cell in sheet1 to another cell in sheet2. When I ran the macro, I
received an error indicating "the object
doesn't support this property or method - run time error 438."

Any suggestions would be appreciated.
Thanks in advance
Jung

Here is the code with the error:

Sub AddNewWorksheets()

Worksheets.Add
Sheets.Add.Name = "SEITransfer"
Sheets.Add.Name = "SEIWire"
Sheets.Add.Name = "SEIACHReceipt"
Sheets.Add.Name = "SEIACHDisbursement"

End Sub

Sub FundsMovement()

Application.ScreenUpdating = False

ActiveSheet.Name = "SEIACHDisbursement"
Range("A1").Value = "FromAcct"
Range("B1").Value = "FromIncome"
Range("C1").Value = "FromPrincipal"
Range("D1").Value = "DisbursementCode"
Range("E1").Value = "DisbursementExplanation1"
Range("F1").Value = "DisbursementExplanation2"
Range("G1").Value = "DisbursementExplanation3"
Range("H1").Value = "DisbursementExplanation4"
Range("I1").Value = "DisbursementExplanation5"
Range("J1").Value = "Taxid"
Range("K1").Value = "ToENeeded"
Range("L1").Value = "CUSIP"

'copy and paste specific cells from ftregi_funds_move worksheet
(sheet1)
'to SEIACHDisbursements(sheet2)
Worksheets("FTREGI_FUNDS_MOVE").Range("E2").Copy
Worksheets("SEIACHDisbursement").Range("A2").Paste '(error on this
line - the object
doesn't support this property or method - run time error 438.)

Application.ScreenUpdating = True

End Sub


--

Dave Peterson

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
copy & paste values+formats from excel to word rockhammer Excel Discussion (Misc queries) 2 May 17th 09 02:29 AM
trying to copy a worksheet containing named ranges to anotherworksheet cil9mxm Excel Worksheet Functions 1 December 3rd 08 06:06 PM
How copy/paste values in Excel doc protected sheet 2 other doc? Got my CWC[_2_] Excel Discussion (Misc queries) 4 October 4th 08 01:28 AM
VBA For Excel - Copy Paste Values only. Graeme[_2_] Excel Worksheet Functions 3 August 10th 08 03:14 PM
excel 97: copy and paste values from one worksheet to another worksheet Kathy[_5_] Excel Programming 0 September 21st 03 03:03 PM


All times are GMT +1. The time now is 07:09 PM.

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"