Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Value translation

I have set up global constant as follows

Global Const ROW_X = 21


On one of my worksheets I have placed "ROW_X - 1" in a cell.

When I read the value in the cell I get "ROW_X - 1". I need to get this
translated into 21 - 1 which would equal 20.

How can I do this?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Value translation

Hi Sheldon,

You cannot use a VBA constant in your worksheet.

Instead, try using a defined name:

Insert | Name | Define | In the names box type RowX
| In the Refers to box type =21 | OK

Now, typing ROWX - 1 in the cell will return 20.


---
Regards,
Norman



"Sheldon" wrote in message
...
I have set up global constant as follows

Global Const ROW_X = 21


On one of my worksheets I have placed "ROW_X - 1" in a cell.

When I read the value in the cell I get "ROW_X - 1". I need to get this
translated into 21 - 1 which would equal 20.

How can I do this?

Thanks



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
Language Translation Barbara Ann Excel Discussion (Misc queries) 3 November 27th 07 01:37 AM
Code translation please N.F[_2_] Excel Discussion (Misc queries) 0 July 6th 07 12:42 AM
Translation/formula. ivan Excel Discussion (Misc queries) 6 September 25th 06 08:34 PM
RNG translation DiZzY Excel Programming 2 May 19th 04 08:08 PM
Need Translation Phil Hageman Excel Programming 1 July 25th 03 03:19 PM


All times are GMT +1. The time now is 01:42 AM.

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"