+ Reply to Thread
Results 1 to 2 of 2

Macro or VBA code to automatically center Checkboxes

  1. #1
    Registered User
    Join Date
    06-29-2016
    Location
    USA
    MS-Off Ver
    MS 2013
    Posts
    2

    Macro or VBA code to automatically center Checkboxes

    Hi,

    Apologies to being an Excel/VBA/Macro newb. I manually entered checkboxes in by inserting them (without using VBA code). I am looking to automatically center the checkboxes so that even if someone adjusts the column or width of a row/column, the checkbox will automatically center as well. Is there a way to do this?

    If I need to re-do how I entered the checkboxes in to begin with by using VBA code that is fine.

    *If someone can help, please let me know if you can, step by step how to install the macro or enter in the VBA code. I am very new to this!!

    I have added the document as an attachment for reference.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro or VBA code to automatically center Checkboxes

    Hi mattch91

    I know of no way to do this "automatically" as no Event fires when Column Width or Row Height is changed. The best I can suggest is a Button that fires your existing Code when the User Clicks the Button.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. [SOLVED] Checkboxes to run macro when their value is changed by another code
    By strud in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2014, 04:13 AM
  2. Macro to automatically check or uncheck checkboxes based on a linked cell
    By lmshow in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2013, 03:31 AM
  3. Replies: 0
    Last Post: 12-13-2012, 01:38 PM
  4. vba code/macro to check checkboxes
    By Jzon758 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2012, 02:55 PM
  5. Center aligning checkboxes when generating via VBA
    By fullysic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2011, 04:00 AM
  6. macro for checkboxes please fix my code
    By Ceeseven in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2009, 01:41 PM
  7. How can I auto-center checkboxes in cells
    By Danny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2005, 01:05 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