Deepjuillet
New Member
- Joined
- May 21, 2022
- Messages
- 1
- Office Version
- 365
- 2013
- Platform
- Windows
Hi I have an excel sheet that names a number of cells as variables. For example cell A1 is defined as speed and in formulas elsewhere in the workbook I have used speed in formulas rather than A1.
I now want to write a function in VBA that uses speed in a formula. Rather than referring to A1, I want to know if I can use the named variable (speed) in the module. When I wrote the code and ran debugger it showed no error but returned zero as result.
Is this possible? I can always to the calculations in the workbook itself but thought I’d try developing a function and use that instead.
I now want to write a function in VBA that uses speed in a formula. Rather than referring to A1, I want to know if I can use the named variable (speed) in the module. When I wrote the code and ran debugger it showed no error but returned zero as result.
Is this possible? I can always to the calculations in the workbook itself but thought I’d try developing a function and use that instead.