Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
This will be easy for you experts out there. On a UserForm I have a Check Box that when I click on it I want it to add a value of £1 to a Cell on a particular worksheet see code below. Private Sub Add2_Click() Dim iRow As Long Dim ws As Worksheet Set ws = Worksheets("Account") 'find first empty row in database iRow = ws.Cells(Rows.Count, 2) _ .End(xlUp).Offset(1, 0).Row 'copy the data to the database ws.Cells(iRow, 1).Value = Me.Tb5.Value ws.Cells(iRow, 2).Value = Me.Tb3.Value ws.Cells(iRow, 4).Value = Me.Tb4.Value 'ws.Cells(iRow, 3).Value = Me.CHECKBOX4???????? 'clear the data Me.Tb3.Value = "" Me.Tb4.Value = "" Me.Tb5.Value = "" Me.Tb6.Value = "" Com3.Value = "" End Sub Where the ????? are what code would I add to make this work -- Many thanks hazel |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
make a check form, and then have info go to a check register | Excel Worksheet Functions | |||
Copy and move check box (check boxes) with new cell link? | Excel Worksheet Functions | |||
Increase size of a Forms Check Box (click on to enter check mark) | Excel Discussion (Misc queries) | |||
Check if Conditional Format is True or False / Check cell Color | Excel Worksheet Functions | |||
Enable check box in protected sheet + group check boxes | Excel Discussion (Misc queries) |