Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks...Merjet, worked like a charm....
On Jan 25, 10:26 pm, "merjet" wrote: Private Sub ComboBox1_AfterUpdate() Dim iRow As Long Dim iRtn As Integer iRtn = MsgBox("Keep this?", vbYesNo) If iRtn = 6 Then iRow = Sheets("Sheet1").Range("D65536").End(xlUp).Row Sheets("Sheet1").Range("D" & iRow + 1) = ComboBox1.Value UserForm_Activate End If End Sub Private Sub UserForm_Activate() Dim rng As Range Dim iRow As Long iRow = Sheets("Sheet1").Range("D65536").End(xlUp).Row Set rng = Sheets("Sheet1").Range("D2:D" & iRow) ComboBox1.RowSource = rng.Worksheet.Name & "!" & rng.Address End Sub Hth, Merjet |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Could not set the Text property of a ComboBox on User Form. | Excel Programming | |||
Could not set the Text property of a ComboBox on User Form. | Excel Programming | |||
Adding WorksheetData to a ComboBox on a form? | Excel Programming | |||
use of mouse track wheel on user form combobox... | Excel Programming | |||
Adding a counter to a User Form in Excel | Excel Programming |