ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   veriable to constant (https://www.excelbanter.com/excel-programming/396951-veriable-constant.html)

Hassan

veriable to constant
 
Hi All,

How its possible to change veriable values to constant values,
e.g. if I count "Excess" and the formula returns 10 and after deleting
"Excess" from the row then formula returns 0, I want that 10 become constant.

Thanks & Regards

Hassan


Halim

veriable to constant
 
Did you have this:

Const Ten as integer = 10

so use Ten for getting 10
--
Regards,

Halim



"Hassan" wrote:

Hi All,

How its possible to change veriable values to constant values,
e.g. if I count "Excess" and the formula returns 10 and after deleting
"Excess" from the row then formula returns 0, I want that 10 become constant.

Thanks & Regards

Hassan


Rick Rothstein \(MVP - VB\)

veriable to constant
 
How its possible to change veriable values to constant values,
e.g. if I count "Excess" and the formula returns 10 and after deleting
"Excess" from the row then formula returns 0, I want that 10 become
constant.


Select the cell, then click Edit/Copy (or key in Ctrl+C), leave the same
cell selected and click Edit/Paste Special, select Values from the Paste
area (leave None for the operation) and click OK. Finally, key in Esc to
remove the selection.

Rick



All times are GMT +1. The time now is 02:40 PM.

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