Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to do a very simple statement, but vb6 keeps giving me errors on
this line. I want to search for the next available line (that is empty). Here's my code, what have I done wrong? It is giving me the error on the line after the If IsEmpty line. Thanks Pam Private Sub CmdSaveChanges_Click() ActiveWorkbook.Sheets("Order").Activate Range("A1").Select Do If IsEmpty(ActiveCell) = False Then ActiveCell.Offset(1, 0).Select End If Loop Until IsEmpty(ActiveCell) = True ActiveCell.Value = TextDate.Value ActiveCell.Offset(0, 1) = ComboWebsite.Value If NewCust = True Then ActiveCell.Offset(0, 2).Value = "New Customer" ElseIf ExistCust = True Then ActiveCell.Offset(0, 2).Value = "Existing Customer" End If |