+ Reply to Thread
Results 1 to 3 of 3

Resizing checkboxes using vba

Hybrid View

  1. #1
    Registered User
    Join Date
    10-04-2017
    Location
    North Carolina
    MS-Off Ver
    2013
    Posts
    29

    Resizing checkboxes using vba

    So I am having difficulty resizing some form control checkboxes using vba. I recorded a macro and used the resulting code, but I keep getting an error. Here is the code:

    Sheet46.Shapes.SelectAll  'this selects the checkboxes properly
    Selection.ShapeRange.ScaleHeight 1.1666666667, msoFalse, msoScaleFromTopLeft   'this is the code I inserted from the macro, but I get a 438 error (object does not support...)
    Any thoughts?

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

    Re: Resizing checkboxes using vba

    Perhaps you have other shapes on the sheet that cannot be sized?

    Try this...

    Sheet46.CheckBoxes.ShapeRange.ScaleHeight 1.1666666667, msoFalse, msoScaleFromTopLeft
    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.

  3. #3
    Registered User
    Join Date
    10-04-2017
    Location
    North Carolina
    MS-Off Ver
    2013
    Posts
    29

    Re: Resizing checkboxes using vba

    Perfect! Thank you!

+ 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 - How to check/uncheck other checkboxes based on another checkbox
    By brooklyn_87 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-27-2017, 01:20 PM
  2. [SOLVED] Toggle between userform checkboxes for multiple pairs of checkboxes
    By L plates in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-25-2016, 06:31 AM
  3. Replies: 4
    Last Post: 04-28-2013, 12:47 AM
  4. Print Sheets based on checkboxes in UserForm, Checkboxes also control another macro
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 03-05-2013, 11:12 AM
  5. Resizing Text Associated with Checkboxes
    By smlaff01 in forum Excel General
    Replies: 1
    Last Post: 04-21-2008, 04:23 PM
  6. Resizing Checkboxes?
    By smlaff01 in forum Excel General
    Replies: 0
    Last Post: 04-03-2008, 08:38 AM
  7. [SOLVED] Resizing cells in a selection without resizing entire sheet
    By Danielle via OfficeKB.com in forum Excel General
    Replies: 4
    Last Post: 08-11-2006, 05:10 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