M
Mr. Smith
Hi.
I keep a few global variables in a sheet called "admin" and give cells name
like:
pct_fee, gross_price etc.
How can I read named ranges smarter than this through VBA:
Sub mytest()
dim varpct_fee
Sheets("admin").Select
ActiveSheet.Range("pct_fee").Select
varpct_fee= ActiveCell.Value
End Sub
I want to use this psaudo instead:
Sub mytest()
dim varpct_fee
varpct_fee = Sheets("admin").Range("pct_fee").Value
End Sub
In general I want to store global values in a "smart" way, easy to change
for the assigned users, without entering VBA mode. With the first code, the
sub starts jumping around in the workbook which is visible for the user and
makes him worried....
Kind regards
Mr. Smith
I keep a few global variables in a sheet called "admin" and give cells name
like:
pct_fee, gross_price etc.
How can I read named ranges smarter than this through VBA:
Sub mytest()
dim varpct_fee
Sheets("admin").Select
ActiveSheet.Range("pct_fee").Select
varpct_fee= ActiveCell.Value
End Sub
I want to use this psaudo instead:
Sub mytest()
dim varpct_fee
varpct_fee = Sheets("admin").Range("pct_fee").Value
End Sub
In general I want to store global values in a "smart" way, easy to change
for the assigned users, without entering VBA mode. With the first code, the
sub starts jumping around in the workbook which is visible for the user and
makes him worried....
Kind regards
Mr. Smith