+ Reply to Thread
Results 1 to 6 of 6

Checkbox position changes as the worksheet zoom changes

  1. #1
    Forum Contributor
    Join Date
    09-13-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    111

    Checkbox position changes as the worksheet zoom changes

    Good Afternoon,

    I have a bit of code where it places checkbox objects into the worksheet. It's not a user form. What i noticed is that the checkbox position changes as the zoom of the worksheet view changes. Here's my code:

    Please Login or Register  to view this content.
    Is there a property or method that I am missing? maybe I can modify the address that I'm using to position the checkbox?

    Thanks All

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Checkbox position changes as the worksheet zoom changes

    Maybe if you use this to Zoom in or out:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Checkbox position changes as the worksheet zoom changes

    Double Post
    Last edited by xladept; 08-09-2014 at 05:26 PM.

  4. #4
    Forum Contributor
    Join Date
    09-13-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    111

    Re: Checkbox position changes as the worksheet zoom changes

    My apologies, I searched the forum for the same bug; but, I didn't find any other posts whose issue reflected mine. I'll search again.

    But after re-reading my post, I might have not explained the issue in it's most accurate detail. This feature of the spreadsheet is suppose to determine the number of data groups, and add two checkboxes for each data group. There could be anywhere from 1 to 10 data groups. To facilitate this, I added a refresh button. When the refresh button is depressed, VBA determines the number of data groups, and then adds check boxes next to each data group area.

    What happens is that the alignment of the checkboxes is good when at 70% zoom. But, the more I zoom in and out, the more skewed the alignment becomes. The checkboxes get skewed vertically, not horizontally. I am not sure what is happening, because I'm setting the alignment of the checkboxes to the cell location.

    I'm going to research the forum posts to see if this problem is there, if not can someone provide some insight?

    Thanks,
    Bob1980

  5. #5
    Forum Contributor
    Join Date
    09-13-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    111

    Re: Checkbox position changes as the worksheet zoom changes

    After some more research, I've found a solution. It looks like the Excel OLEObject/FormControls/ActiveXObjects are a little buggy. And, it has something to do with screen resolution.

    My work around involves re establishing the position of the checkbox after it is created. So, it's redundant; but, it works.

    Please Login or Register  to view this content.
    Thanks for the help forum. I'm going to add reputation for everyone that replied.

    Thanks!!!!

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Checkbox position changes as the worksheet zoom changes

    You're welcome and thanks for the rep!

+ 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. Replies: 1
    Last Post: 07-27-2014, 10:57 AM
  2. check checkbox value by position
    By grendel_42 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-21-2010, 09:04 AM
  3. check checkbox value by position
    By grendel_42 in forum Access Programming / VBA / Macros
    Replies: 0
    Last Post: 05-21-2010, 05:17 AM
  4. Access a cell based on CheckBox position
    By franferns in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-18-2009, 09:40 AM
  5. [SOLVED] Position Form on screen v Window Zoom !
    By RAFAAJ2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2005, 05:05 AM

Tags for this Thread

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