Pretty Basic Excel Macro Help
Closed
The Reinman
-
Jul 15, 2008 at 01:05 PM
Ivan-hoe Posts 433 Registration date Saturday February 16, 2008 Status Member Last seen October 17, 2008 - Jul 16, 2008 at 03:18 AM
Ivan-hoe Posts 433 Registration date Saturday February 16, 2008 Status Member Last seen October 17, 2008 - Jul 16, 2008 at 03:18 AM
Related:
- Pretty Basic Excel Macro Help
- Spell number in excel without macro - Guide
- Excel marksheet - Guide
- Excel apk for pc - Download - Spreadsheets
- Macros in excel download free - Download - Spreadsheets
- Kernel for excel - Download - Backup and recovery
1 response
Ivan-hoe
Posts
433
Registration date
Saturday February 16, 2008
Status
Member
Last seen
October 17, 2008
110
Jul 16, 2008 at 03:18 AM
Jul 16, 2008 at 03:18 AM
Hello,
I guess you click on a button to validate the data put in the textboxes.
Your VBA macro could look like this :
Ivan
I guess you click on a button to validate the data put in the textboxes.
Your VBA macro could look like this :
Private Sub CommandButton1_Click() Dim LastLine As Integer, NewLine As Integer With Sheets("Update_log") LastLine = .Cells(Rows.Count, "A").End(xlUp).Row NewLine = LastLine + 1 If Not IsNumeric(.Cells(LastLine, "A").Value) Then .Cells(NewLine, "A").Value = 1 Else .Cells(NewLine, "A").Value = .Cells(LastLine, "A").Value + 1 End If .Cells(NewLine, "B").Value = OperatorTXT.Value: OperatorTXT.Value = Empty .Cells(NewLine, "C").Value = OperatorTXT2.Value: OperatorTXT2.Value = Empty End With End Sub
Ivan