ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to declare variable as Excel constant? (https://www.excelbanter.com/excel-programming/307688-how-declare-variable-excel-constant.html)

John Wirt[_6_]

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



Frank Kabel

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


Bob Phillips[_6_]

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






All times are GMT +1. The time now is 10:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com