Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Returning the value of a named formula

Hi,

I've defined some names in my workbook and I try to read the value o
those in my VB application.

The simple ones, which are like "=data!$A$2" (named as Xmin) are eas
to read with Range(ActiveWorkbook.Names("Xmin").Value).

How do I get the value of a named formula? (for exampl
=MAX(INDIRECT("data!A:A")) that is named as Xmax)

- Asse

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Returning the value of a named formula

Hi Asser
Evaluate("Xmax")

HTH
Cordially
Pascal

"Jazzer " a écrit dans le message de
...
Hi,

I've defined some names in my workbook and I try to read the value of
those in my VB application.

The simple ones, which are like "=data!$A$2" (named as Xmin) are easy
to read with Range(ActiveWorkbook.Names("Xmin").Value).

How do I get the value of a named formula? (for example
=MAX(INDIRECT("data!A:A")) that is named as Xmax)

- Asser


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Returning the value of a named formula

Hi & thanks for a quick reply

In case of a simple named range, evaluate works, but if I use it i
this "Xmax" situtation, I get an "Error 2023".

Should it be possible to use evaluate, when the name is actually
formula?

- Asse

--
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
Formula returning "A value used in the formula is of the wrong dat Mac0001UK Excel Worksheet Functions 2 June 2nd 09 04:06 AM
Looking up a named range and returning value into a cell Maggie[_4_] Excel Discussion (Misc queries) 3 October 25th 07 02:59 PM
Formula not returning value ESPN Excel Worksheet Functions 2 June 22nd 07 09:38 PM
OFFSET function in named range returning wrong # of rows Heidi Excel Worksheet Functions 5 March 20th 07 10:15 PM
Returning the x value of a formula Mental Block Excel Discussion (Misc queries) 1 February 12th 05 11:03 PM


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