tortillachips
New Member
- Joined
- Aug 9, 2011
- Messages
- 5
I created a multipage userform in VBA. On one page of the userform I have the user input a range in meters. On a separate page of the same form I want to create a button to bring those same range values in (except this time in feet). When I try this I get a type mismatch error. Can anyone help me do this while still using an array to avoid my code being extremely lengthy. You can find the code below..
Dim x as integer
For x = 1 to 10
Me.Controls("TxtFRange" & x).Value = Me.Controls("TxtRange" & x).Value * 3.2808
Next x
Thank you!
Dim x as integer
For x = 1 to 10
Me.Controls("TxtFRange" & x).Value = Me.Controls("TxtRange" & x).Value * 3.2808
Next x
Thank you!