+ Reply to Thread
Results 1 to 7 of 7

Command Button To Reset Values

  1. #1
    Registered User
    Join Date
    11-27-2008
    Location
    USA
    Posts
    43

    Command Button To Reset Values

    I'd like to make a one command button for which the function on Sheet "PM Data" (when pressed) would:
    1--Reset Cells (G5, G28, and G51) to a default value of "2",
    2--Reset Cells (D16, D39, and D62) to a default value of "C/D"

    Can anyone help me w/ the steps from beginning to end? Thanks!!!
    Last edited by VBA Noob; 02-18-2009 at 06:41 PM.

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Command Button To Reset Values

    Sure thing, I'll put a sheet together for you with an explanation of the VB on it.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Command Button To Reset Values

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Command Button To Reset Values

    See attached sheet.

    Text explanation on the sheet with instructions on how to make your own, and how to look at the code already in that one, and instructions in the code on how it works.

    mew!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-27-2008
    Location
    USA
    Posts
    43

    Question Re: Command Button To Reset Values

    Quote Originally Posted by Kenneth Hobson View Post
    Please Login or Register  to view this content.
    Does the code you provided not allow for a certain number of cells within the range? In other words can I insert 45 cells into each range?

  6. #6
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Command Button To Reset Values

    You could enter them individually, but I don't think it'll allow you to declare a range that large. You could just do like 5 on each line though.

  7. #7
    Registered User
    Join Date
    11-27-2008
    Location
    USA
    Posts
    43

    Wink Re: Command Button To Reset Values

    Thanks sooooooo much! U R great!

+ 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