Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Good evening,
I'm trying to move data from textboxes into Userform, but the following code doesn't work (I've tried many variations to no avail). What am I doing wrong? With Worksheets("Sheet1") Range("A1").Select If ActiveCell.Offset(1, 0) = "" Then ActiveCell.Offset(1, 0).Select Else ActiveCell.End(xlDown).Offset(1, 0).Select End If Set rng = ActiveCell With rng i = 1 For Each ctrl In Me.Controls If TypeOf ctrl Is msForms.TextBox Then<----Runtime error 451 .Offset(0, i).Value = ctrl(i).Value i = i + 1 End If Next ctrl End With End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Looping through textboxes | Excel Discussion (Misc queries) | |||
UserForm TextBoxes | Excel Discussion (Misc queries) | |||
userform & textboxes | Excel Programming | |||
userform textboxes again | Excel Programming | |||
userform textboxes | Excel Programming |