Hello,
I was wondering how I could get a number from a cell, Lets say A1 = 3, and take another number, could range from 0 to 10, from D1 = 2, or something and take the value in A1 and turn it in .03 in cell C5, using VBA.
D1 is going to set the number of decimal places including the value in A1.
Examples
A1 3
D1 0
C5 3
A1 3
D1 4
C5 .0003
A1 3
D1 3
C5 .003
A1 3
D1 8
C5 .00000003
I know I could C5.formula and do all kinds of if statements, but I was hoping for more VBA simpleness.
Any help would be greatly appreciated.
Thank you in advance.
I was wondering how I could get a number from a cell, Lets say A1 = 3, and take another number, could range from 0 to 10, from D1 = 2, or something and take the value in A1 and turn it in .03 in cell C5, using VBA.
D1 is going to set the number of decimal places including the value in A1.
Examples
A1 3
D1 0
C5 3
A1 3
D1 4
C5 .0003
A1 3
D1 3
C5 .003
A1 3
D1 8
C5 .00000003
I know I could C5.formula and do all kinds of if statements, but I was hoping for more VBA simpleness.
Any help would be greatly appreciated.
Thank you in advance.