+ Reply to Thread
Results 1 to 2 of 2

VBA Can't Reactivate Button

  1. #1
    Registered User
    Join Date
    11-29-2016
    Location
    Connecticut
    MS-Off Ver
    2016
    Posts
    2

    VBA Can't Reactivate Button

    Hello! I am finally almost finished with my project. I have created connect 4 in excel but I am having an issue resetting some buttons. I added red buttons on top of my columns so when you hit them, they will drop an "x" or an "o" into the box below. However, when I use my "reset" or "new game button" button it clears everything but my top red button no longer does anything. Before I added those red command buttons you could click on any box and place an x or an o and everything seemed to have reset properly. I attached the project if anyone can please help see what I did wrong. Thanks, it would be much appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA Can't Reactivate Button

    The code to drop an X or O starts with an If statement to test if the caption is a null string.

    Please Login or Register  to view this content.

    The Reset button sets the button captions to a space character.

    Please Login or Register  to view this content.

    A null string doesn't equal a space character.
    Last edited by AlphaFrog; 11-30-2016 at 09:27 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Create running stopwatch/timer with 1 button (start/stop). No reset button.
    By leeroy2612 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-26-2021, 12:59 AM
  2. [SOLVED] Form - select button & retrieve button name or button's caption
    By lexusap in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-27-2016, 12:28 AM
  3. Replies: 1
    Last Post: 01-31-2016, 05:54 AM
  4. workbook to extract data without reactivate
    By biznez in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-08-2015, 10:48 PM
  5. Replies: 0
    Last Post: 06-10-2014, 10:44 PM
  6. Reactivate Sheet
    By Streng in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-03-2009, 08:46 AM
  7. [SOLVED] Deactivate then Reactivate UpdateLinks
    By TOMB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-24-2006, 06:23 PM

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