+ Reply to Thread
Results 1 to 4 of 4

Create a macro & assign to a button

  1. #1
    Registered User
    Join Date
    03-04-2008
    Posts
    34

    Create a macro & assign to a button

    Hi all -

    I'm back for more unparalleled advice.

    I have a column where the answer choices are either Yes or No (which are in a drop down). I'd like to find a macro that I can assign to a button for the user to say "YES" to all. Then I'd like to find a macro that can be assigned to a button for the user to "CLEAR" the results. All of this in column J, and between rows 12 to 359.

    Can someone help me with the macros? Once the macros are created, I think I know how to assign it to a button.

    Cheers!


  2. #2
    Registered User
    Join Date
    02-03-2009
    Location
    Upstate New York
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Create a macro & assign to a button

    sub clear()

    Range("j12:j359").Select
    Selection.ClearContents
    Range("j12").Select

    end sub

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-03-2009
    Location
    Upstate New York
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Create a macro & assign to a button

    oops sorry thought i had this in there
    Please Login or Register  to view this content.
    btw... this kinda of stuff i learned from doing 'record'
    so that means ther could be an easier way =)

  4. #4
    Registered User
    Join Date
    03-04-2008
    Posts
    34

    Re: Create a macro & assign to a button

    Thanks Ceeseven!

+ Reply to Thread

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