Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default How to declare variable as Excel constant?

Here is another simple question.

How can I declare a variable as an Excel contant?

I've tried,

Dim csSortOrder as constant

but it doesn't work.

Thank you.

John Wir


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default How to declare variable as Excel constant?

Hi
use
const csSortorder = value

--
Regards
Frank Kabel
Frankfurt, Germany


John Wirt wrote:
Here is another simple question.

How can I declare a variable as an Excel contant?

I've tried,

Dim csSortOrder as constant

but it doesn't work.

Thank you.

John Wir

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How to declare variable as Excel constant?

Const variable_name As variable_Type = value

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"John Wirt" wrote in message
...
Here is another simple question.

How can I declare a variable as an Excel contant?

I've tried,

Dim csSortOrder as constant

but it doesn't work.

Thank you.

John Wir




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
how can we make one constant number to be act as variable Vimlesh Excel Discussion (Misc queries) 3 June 1st 10 11:26 PM
subtract a variable no. of mos. from a constant date? in excel Dennis Excel Discussion (Misc queries) 5 July 19th 07 01:50 PM
How to average one constant # to variable #s? A1:A2 A1:A3 A1:A4 Colfax Excel Worksheet Functions 1 March 2nd 06 02:49 AM
How do i declare a formula with prenamed variable Jeff Excel Programming 1 June 25th 04 06:09 PM
Excel application: Summing several terms (some constant, some variable) David Excel Programming 1 August 12th 03 01:09 AM


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