Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Here is the cmdOK_Click event of my user form. What I need it to do is
based on the time input in the pckApptTime on my form to have it offset to a different range of cells (ie: if time is 7:15, then the active cell offset is range A1, looping for a blank cell. If the time is 8:30 am then the range begins at a10, 9:45 range a20, 1:15 range a30, 2:30 range a40, and 3:45 range a50) Where in the Sub do I put this information? and what do I put to have the OK_Click do this automatically? Private Sub cmdOK_Click() Range("A1").Select ActiveWorkbook.Save (this is to update the shared workbook) Do If IsEmpty(ActiveCell) = False Then ActiveCell.Offset(1, 0).Select End If Loop Until IsEmpty(ActiveCell) = True strClientName = txtClientName.Value ActiveCell.Value = StrConv(strClientName, vbProperCase) (THIS PUTS THE INFORMATION FROM THIS FORM FIELD IN PROPER CASE IN THE ACTIVE WORKSHEET) ActiveCell.Offset(0, 1) = pckFDate.Value ActiveCell.Offset(0, 2) = pckIntDate.Value ActiveCell.Offset(0, 3) = pckApptTime.Value... (THIS IS THE FIELD THAT I NEED TO OFSET AS LISTED ABOVE) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
checking that cells have a value before the workbook will close | Excel Worksheet Functions | |||
Print scrollable user form. | Excel Discussion (Misc queries) | |||
Finding a record based on user input | Excel Discussion (Misc queries) | |||
Date/time range based calculations | Excel Discussion (Misc queries) | |||
Input Form vba help | Excel Discussion (Misc queries) |