LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Run-time error 1004

I did it! It finally works. I had entered the references in ColumnList etc.
with quotation marks so they appeared in the set statements with two
quotatiion marks in front and two behind. Something you said gave me a clue.
Thanks for the patience, Jim. This was not an important project, but it was
sticking in my craw. I really appreciate the help.

"Jim Cone" wrote:


I'll give it another try, however things are still not clear.

Once you have established (set) a range object you do not qualify it when
you use it. Assuming the range object SelectCell refers to WS1.Range("B5") then
WS1.Range(SelectCell).Value = 44 fails, while SelectCell.Value = 44 is valid.

However, the address of a range object is a string and the string has no reference
by itself to any particular worksheet. So the string (address) can be used
with the Range method on another sheet...
WS2.Range(SelectCell.Address).Value = 123 is valid and is the same as
WS2.Range("B5").Value = 123
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"Jerry McNabb" wrote in message ...
Okay, I finally got the message through my head. It means that The error is
one I defined in the application or one defined by the object. Is there any
way to find out what this error is?


 
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
run time error 1004 general odbc error excel 2003 vba Mentos Excel Programming 5 January 24th 11 02:56 PM
Run time error 1004 Object defined error [email protected] Excel Programming 1 May 15th 07 03:31 AM
Run Time Error 1004: Application or Object Defined Error BEEJAY Excel Programming 4 October 18th 06 04:19 PM
Run Time 1004 Error: Application or Object Difine Error BEEJAY Excel Programming 0 October 17th 06 10:45 PM
run-time error '1004': Application-defined or object-deifined error [email protected] Excel Programming 5 August 10th 05 09:39 PM


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