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

Try activating the sheets first:

Worksheets("FTREGI_FUNDS_MOVE").Select
Range("E2").Select
Selection.Copy
Worksheets("SEIACHDisbursement").Select
Range("A2").Select
ActiveSheet.Paste

-----Original Message-----
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
.

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 worksheet with print settings into new worksheet Larry Ohio Excel Discussion (Misc queries) 1 December 23rd 09 05:17 PM
Copy / paste from a table in word .doc to excel .xls worksheet Paul Excel Discussion (Misc queries) 1 April 29th 07 03:58 PM
allow me to copy and paste in a protected worksheet George New Users to Excel 3 August 13th 06 08:11 PM
Prevent changing size when copy&paste into another Excel Worksheet Michelle Excel Worksheet Functions 0 June 26th 06 04:30 PM
searching for values in excel and copy them to another worksheet solo_razor Excel Programming 1 September 10th 03 09:00 AM


All times are GMT +1. The time now is 04:22 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"