Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unclear Error Message
Hi,
I am trying to set a range variable with a defined range, but I get this error all the time: "Run-time error '1004': Application-defined or object-definned error." the code is this: Sub temp() Dim MyRange As Range Set MyRange = Names("temp").RefersToRange .. .. .. End Sub I can't figure it out. Can you help? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unclear Error Message
Sub temp()
Dim MyRange As Range Set MyRange = ThisWorkbook.Names("temp").RefersToRange .. .. .. End Sub is a possibility. -- Regards, Tom Ogilvy "Yossi" wrote in message ... Hi, I am trying to set a range variable with a defined range, but I get this error all the time: "Run-time error '1004': Application-defined or object-definned error." the code is this: Sub temp() Dim MyRange As Range Set MyRange = Names("temp").RefersToRange . . . End Sub I can't figure it out. Can you help? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unclear Error Message
thanks!
"Tom Ogilvy" wrote: Sub temp() Dim MyRange As Range Set MyRange = ThisWorkbook.Names("temp").RefersToRange .. .. .. End Sub is a possibility. -- Regards, Tom Ogilvy "Yossi" wrote in message ... Hi, I am trying to set a range variable with a defined range, but I get this error all the time: "Run-time error '1004': Application-defined or object-definned error." the code is this: Sub temp() Dim MyRange As Range Set MyRange = Names("temp").RefersToRange . . . End Sub I can't figure it out. Can you help? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VBA Link - Previous post unclear | Excel Discussion (Misc queries) | |||
How do I unclear the value axis? | Charts and Charting in Excel | |||
Unclear about hot to automate searchs | Excel Worksheet Functions | |||
changing the message in an error message | Excel Worksheet Functions | |||
How do I get rid of "Compile error in hidden module" error message | Excel Discussion (Misc queries) |