+ Reply to Thread
Results 1 to 30 of 30

Loop through names of buttons on a userform

Hybrid View

KAPearson Loop through names of buttons... 06-10-2012, 08:08 AM
nilem Re: Loop through names of... 06-10-2012, 09:02 AM
KAPearson Re: Loop through names of... 06-10-2012, 09:24 AM
KAPearson Re: Loop through names of... 06-10-2012, 09:35 AM
nilem Re: Loop through names of... 06-10-2012, 09:55 AM
KAPearson Re: Loop through names of... 06-10-2012, 10:02 AM
royUK Re: Loop through names of... 06-10-2012, 10:16 AM
KAPearson Re: Loop through names of... 06-10-2012, 10:24 AM
nilem Re: Loop through names of... 06-10-2012, 10:21 AM
KAPearson Re: Loop through names of... 06-10-2012, 11:07 AM
royUK Re: Loop through names of... 06-10-2012, 12:01 PM
KAPearson Re: Loop through names of... 06-10-2012, 01:21 PM
royUK Re: Loop through names of... 06-10-2012, 01:25 PM
KAPearson Re: Loop through names of... 06-10-2012, 01:31 PM
KAPearson Re: Loop through names of... 06-10-2012, 01:26 PM
KAPearson Re: Loop through names of... 06-10-2012, 01:33 PM
JosephP Re: Loop through names of... 06-10-2012, 02:09 PM
KAPearson Re: Loop through names of... 06-10-2012, 02:35 PM
JosephP Re: Loop through names of... 06-10-2012, 03:44 PM
KAPearson Re: Loop through names of... 06-10-2012, 04:14 PM
JosephP Re: Loop through names of... 06-10-2012, 04:19 PM
KAPearson Re: Loop through names of... 06-10-2012, 04:23 PM
JosephP Re: Loop through names of... 06-10-2012, 04:25 PM
KAPearson Re: Loop through names of... 06-10-2012, 04:31 PM
KAPearson Re: Loop through names of... 06-10-2012, 04:28 PM
JosephP Re: Loop through names of... 06-10-2012, 04:33 PM
JosephP Re: Loop through names of... 06-10-2012, 04:38 PM
KAPearson Re: Loop through names of... 06-10-2012, 04:42 PM
JosephP Re: Loop through names of... 06-10-2012, 04:49 PM
KAPearson Re: Loop through names of... 06-10-2012, 04:50 PM
  1. #1
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Loop through names of buttons on a userform

    try
    Private Sub CBNames_Change()
    Dim ctl As Control, lRw As Long
    lRw = Me.CBNames.ListIndex + 2
    With Sheets("Main")
        For Each ctl In Me.Controls
            If TypeName(ctl) = "TextBox" Then
                If Len(ctl.Name) < 3 Then ctl.Value = .Cells(lRw, ctl.Name).Value
            End If
        Next ctl
    End With
    End Sub

  2. #2
    Forum Contributor
    Join Date
    05-14-2012
    Location
    England
    MS-Off Ver
    Excel 2010/2013
    Posts
    100

    Re: Loop through names of buttons on a userform

    Brilliant! Thank you that save a huge amount of typing! If you could find a way to make sure the date format was dd/mm/yy that would br great?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1