Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm creating my very first VBA form (Im a Newb), but I'm wondering how
to get the number that is typed in a a "textbox" to immediatly alter to a negative amount when it is submitted and populates into the sheet? Thank you, C. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the event to write it to the cell
Private Sub TextBox1_Change() if isnumeric(Textbox1.Text) then Worksheets("Sheet1").Range("A1").Value = _ -1 * Abs(TextBox1.Text) end if End Sub -- Regards, Tom Ogilvy wrote in message ups.com... I'm creating my very first VBA form (Im a Newb), but I'm wondering how to get the number that is typed in a a "textbox" to immediatly alter to a negative amount when it is submitted and populates into the sheet? Thank you, C. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simple question | New Users to Excel | |||
IF formula-simple question; simple operator | Excel Discussion (Misc queries) | |||
Simple question | Charts and Charting in Excel | |||
Simple Simple Excel usage question | Excel Discussion (Misc queries) | |||
simple question, hopefully a simple answer! | Excel Programming |