Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Named Range Macro Formula
Try:
Worksheets("Sheet1").Range("SALES").Address -- Hope this helps Martin Fishlock, Bangkok, Thailand Please do not forget to rate this reply. "Simon" wrote: Hi There, How do you get the cell references of a named range. I need to create a formula within a macro which will be assigned to a particular cell, however I'm having trouble doing this. I need the cell references of the particular named range. The named range is only one cell eg. SALES is A5. Thanks Simon |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Named Range Macro Formula
Hi Martin,
That snippet of code didn't work I got the following error: Object doesn't support this property or method. Please help.... Thanks. Simon "Martin Fishlock" wrote: Try: Worksheets("Sheet1").Range("SALES").Address -- Hope this helps Martin Fishlock, Bangkok, Thailand Please do not forget to rate this reply. "Simon" wrote: Hi There, How do you get the cell references of a named range. I need to create a formula within a macro which will be assigned to a particular cell, however I'm having trouble doing this. I need the cell references of the particular named range. The named range is only one cell eg. SALES is A5. Thanks Simon |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Named Range Macro Formula
demo's from the immediate window:
? Application.Range("Sales").Address $A$5 Range("B11").Formula = "=Sum(" & Application.Range("Sales").Address & ")" ? Range("B11").Formula =SUM($A$5) -- Regards, Tom Ogilvy "Simon" wrote in message ... Hi Martin, That snippet of code didn't work I got the following error: Object doesn't support this property or method. Please help.... Thanks. Simon "Martin Fishlock" wrote: Try: Worksheets("Sheet1").Range("SALES").Address -- Hope this helps Martin Fishlock, Bangkok, Thailand Please do not forget to rate this reply. "Simon" wrote: Hi There, How do you get the cell references of a named range. I need to create a formula within a macro which will be assigned to a particular cell, however I'm having trouble doing this. I need the cell references of the particular named range. The named range is only one cell eg. SALES is A5. Thanks Simon |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Named Range Macro | Excel Discussion (Misc queries) | |||
Array as a "named range" - formula ok in cells, but error as "named range" | Excel Discussion (Misc queries) | |||
Named Range Macro Formula | Excel Programming | |||
How do I use a Macro to define a Named Range | Excel Programming | |||
How to set named range in macro? | Excel Programming |