LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Using a Public Variable in a cell formula

Is it possible to use a Public Variable (created in a macro) in a cell
formula?

Specifically: I have a workbook that contains a date as a part of the name
(id MySheet 11.10.03.xls)
When I open the workbook I capture the date (11/10/03) into a Public
Variable "ThisWeek". I want to use that
variable in a cell calculation. Is that possible? When I use the formula
=if(E3<ThisWeek, "Not Started", "Started"),
I get #NAME# in the cell

TIA
Glen


 
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
Set Public Variable on Open jlclyde Excel Discussion (Misc queries) 4 September 11th 09 07:03 PM
Cell variable in formula Tim desision support Excel Worksheet Functions 1 October 19th 06 02:49 PM
Public variable Jack New Users to Excel 4 March 18th 06 09:35 PM
Scope of Public Variable Dkline[_2_] Excel Programming 9 October 22nd 03 04:53 PM
public variable marwan hefnawy Excel Programming 1 September 5th 03 08:54 AM


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"