Results 1 to 1 of 1

How to create VBA loop?

Threaded View

  1. #1
    Registered User
    Join Date
    09-29-2010
    Location
    Koudekerk a/d Rijn, Netherlands
    MS-Off Ver
    Office 2010
    Posts
    20

    How to create VBA loop?

    Hi,

    I need some help with some vba code.
    I'm a complete noob, so forgive me.

    I need to rewrite the following code with somekind of "loop=code", because I have 50 buttons to use in my form.

    Hope someone can help me.
    Many Thanks,
    Erik

    Sub SFDay10_Click()
    ClearControls
    End Sub
    
    Sub SFDay11_Click()
    ClearControls
    End Sub
    
    Sub SFDay12_Click()
    ClearControls
    End Sub
    
    Sub SFDay13_Click()
    ClearControls
    End Sub
    
    Sub SFDay14_Click()
    ClearControls
    End Sub
    
    Sub SFDay15_Click()
    ClearControls
    End Sub
    Last edited by bergjes; 02-18-2013 at 03:22 PM.

Thread Information

Users Browsing this Thread

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

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