Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Run Time Error 424

I have a macro which runs while a number of workbooks are open. I kee
getting a Run Time Error 424 when I do the following:

Workbooks(workbook1.xls).Worksheets("Data").Range( "PasteCell").Value
Workbooks(workbook2.xls).Worksheets("Supply").Rang e("CopyCell").Value

I know that both worksheets are open and that the sheet names ar
correct as well as the named ranges. What am I doing wrong?

Thank

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Run Time Error 424

Put the workbook names in quotes. E.g.,

Workbooks("workbook1.xls").Worksheets("Data").Rang e("PasteCell").
Value =
Workbooks("workbook2.xls").Worksheets("Supply").Ra nge("CopyCell")
..Value


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"ExcelMonkey " wrote
in message ...
I have a macro which runs while a number of workbooks are open.

I keep
getting a Run Time Error 424 when I do the following:


Workbooks(workbook1.xls).Worksheets("Data").Range( "PasteCell").Va
lue =

Workbooks(workbook2.xls).Worksheets("Supply").Rang e("CopyCell").V
alue

I know that both worksheets are open and that the sheet names

are
correct as well as the named ranges. What am I doing wrong?

Thanks


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Run Time Error 424

Duh...Thanks Chi

--
Message posted from http://www.ExcelForum.com

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
Visual Basic Error Run Time Error, Type Mismatch Meg Partridge Excel Discussion (Misc queries) 12 September 10th 08 06:10 PM
run-time error '91'-Close Button error ASCO IS Help Excel Discussion (Misc queries) 1 May 8th 06 04:25 PM
Run time error 1004, General ODBC error [email protected] New Users to Excel 0 September 19th 05 01:41 AM
Run-time error '11' & Run-time error '1004' Piers Clinton-Tarestad Excel Programming 0 January 9th 04 08:35 PM
Run-time error '11' & Run-time error '1004' Piers Clinton-Tarestad Excel Programming 0 January 9th 04 07:45 PM


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

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

About Us

"It's about Microsoft Excel"