+ Reply to Thread
Results 1 to 2 of 2

Commandbutton

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    Las Vegas, NV
    MS-Off Ver
    365 - 2016
    Posts
    3

    Commandbutton

    I created a commandbutton in an earlier version of Excel and I cannot get it to run anymore with the Office 365 package. It is a simple button to hide/unhide certain columns; I think the association of the between the MACRO and command button is lost. I can no longer access the propeorties of the command button.

    Here is what I had programmed in the sheet:

    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer
    Last edited by 6StringJazzer; 02-24-2015 at 10:00 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,698

    Re: Commandbutton

    Your description says command button but the comment in the code says toggle button. The code looks like it would only work for a toggle button.

    If it's a toggle button, it's probably an ActiveX control. A Windows update late last year inadvertently caused ActiveX controls to stop working. A fix for this is to search for and delete files named MSForms.exd. I have done this on three computers with no side effects. However, I do not know for sure that is your problem.

    I am not familiar with running Excel under Office 365 so I don't know how that might come into play.

    The best way to diagnose this is with your file. Can you attach it?

    By the way this code can be streamlined. The variable Act is never used, so its declaration can be removed. You are setting a Boolean attribute that is directly dependent on a Boolean value, so that logic can be simplified. Such is the beauty of a toggle button.
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Commandbutton in userform to execute code based on a previous commandbutton choice?
    By michaeljoeyeager in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2012, 03:28 PM
  2. commandbutton
    By Zygan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-01-2006, 01:21 AM
  3. CommandButton VB Help
    By JK2002 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2006, 09:23 PM
  4. [SOLVED] Commandbutton
    By alvin Kuiper in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-27-2005, 02:35 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