JeffGates
Technical User
- May 11, 2002
- 6
First time posting, with a problem that I can't figure out.
I'm trying to create an excel based front end for my business and learing VBA as I go. I've created a visual keypad with numbers 0 through 9, a button to clear the input cell and a decimal point.
I've got everything working with the exception of the decimal point with the following code:
Sub Keypad1()
Dim Value1 As Integer
Value1 = 1
Cells(2, 2).Value = Cells(2, 2).Value & Value1
End Sub
I've read all of the FAQ and searched the internet for a week.
I tried "SendKeys" from the FAQ section but can't figure out how to get it to work with data that's already in the input cell.
Your advice is much appreciated.
I'm trying to create an excel based front end for my business and learing VBA as I go. I've created a visual keypad with numbers 0 through 9, a button to clear the input cell and a decimal point.
I've got everything working with the exception of the decimal point with the following code:
Sub Keypad1()
Dim Value1 As Integer
Value1 = 1
Cells(2, 2).Value = Cells(2, 2).Value & Value1
End Sub
I've read all of the FAQ and searched the internet for a week.
I tried "SendKeys" from the FAQ section but can't figure out how to get it to work with data that's already in the input cell.
Your advice is much appreciated.