+ Reply to Thread
Results 1 to 7 of 7

Command Button To Reset Values

Hybrid View

  1. #1
    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
    Private Sub CommandButton1_Click()
      Range("G5,G28,G51").Value = 2
      Range("D16,D39,D62").Value = "C/D"
    End Sub
    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?

  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

    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.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    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