+ Reply to Thread
Results 1 to 11 of 11

CheckBoxes.Add Works fine in 2010 but not 2007 or 2003

  1. #1
    Registered User
    Join Date
    09-17-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    7

    CheckBoxes.Add Works fine in 2010 but not 2007 or 2003

    Hello all

    i have this code in my macro to create entries in a table and sort the table after. (a name in one column and a checkbox in another)
    my code works wonderfully in excel 2010 but when it came to showing my boss who was using MS Office 2003 (tried 2007 with same issue )... excel let me down


    Please Login or Register  to view this content.
    in 2010 the checkbox is added into the cell and the data with checkbox is sorted no problem. but with office 2003 and 2007 the checkbox is left behind.

    side note: i used to have the checkbox created at the bottom of the table which was also the bottom of the sheet (F65536) and it added the checkbox in F644xx or something wrong like that, so i changed it to F100 thinking it would solve the problem and it did not )
    any help would be greatly appreciated.
    thanks for reading
    Last edited by Jakeman92; 09-17-2013 at 04:02 AM. Reason: early morning lol & more info

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: CheckBoxes.Add Works fine in 2010 but not 2007 or 2003

    the checkbox should sort if it is completely contained "within" the parent cell
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    09-17-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: CheckBoxes.Add Works fine in 2010 but not 2007 or 2003

    It does but only in excel 2010. which i am pretty much the only person on site who has it. is there any extra code which can make this happen?
    is:
    Please Login or Register  to view this content.
    enough?
    thanks

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: CheckBoxes.Add Works fine in 2010 but not 2007 or 2003

    I have just tested in 2003 and it sorts as required if it fits within F100

  5. #5
    Registered User
    Join Date
    09-17-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: CheckBoxes.Add Works fine in 2010 but not 2007 or 2003

    ok thanks for checking it out. ive tried on 2 different machines and had the same problem, ill try making the checkbox smaller then so it is 100% definitely inside the cell.
    thanks again

  6. #6
    Registered User
    Join Date
    09-17-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    7

    Angry Re: CheckBoxes.Add Works fine in 2010 but not 2007 or 2003

    PFMEA Creator.zip

    Hello, i cannot get this to work. i dont know why it doesent create the checkbox IN/ON the cell i want (F100)
    Again this issue only happens in Excel 2003 and 2007.

    to reproduce the problem, go to "index" sheet.
    Click "Add/Edit/Overwrite PFMEA" button.
    give it a random name, (but using a name like HS03 will keep other parts of my code happy although that doesent effect this issue)
    Select random cells and press ok.
    and you will see that the checkbox was created ABOVE Cell F100 and will not sort with the table.

    i also noticed that i cannot get the Height of the checkbox smaller than the cell, even manually (unlike excel 2010 which is flawless)

    the code in question in a few lines from the bottom of the VBA window

    thanks for your time
    Last edited by Jakeman92; 09-17-2013 at 10:58 AM. Reason: letting you know where the code in question is, as its a jungle out there lol

  7. #7
    Registered User
    Join Date
    09-17-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: CheckBoxes.Add Works fine in 2010 but not 2007 or 2003

    sorry, ive been getting a little frustrated.
    i restoed my code from yesterday and realised that

    Please Login or Register  to view this content.
    works flawlessly in 2010. ive tried different things and changed it round so much that ive broken it even in 2010.... but this is good and working in 2010, but not the others.

    sorry, im winding myself up now, its been a long day
    thanks

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: CheckBoxes.Add Works fine in 2010 but not 2007 or 2003

    you may have to increase the row height of the cells. I can reduce the height of the checkbox to match the range (by resetting the height after adding the checkbox) but then it's not fully legible

  9. #9
    Registered User
    Join Date
    09-17-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: CheckBoxes.Add Works fine in 2010 but not 2007 or 2003

    I was hopeing that wouldn't be the case. but i may have to if all else fails.

    if the checkbox is well within the limits of a larger cell, the resized down to default size, will the checkbox still be in/on the cell?

  10. #10
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: CheckBoxes.Add Works fine in 2010 but not 2007 or 2003

    try it and see ;-)

    btw you will get much better positioning of the controls if you change the window zoom to 100% rather than 145% as it is

  11. #11
    Registered User
    Join Date
    09-17-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: CheckBoxes.Add Works fine in 2010 but not 2007 or 2003

    Quote Originally Posted by JosephP View Post
    try it and see ;-)

    btw you will get much better positioning of the controls if you change the window zoom to 100% rather than 145% as it is
    Yup when zoomed at 100% it works fine. thank you very much, and who would have though something as silly as that would be what was going wrong.
    Thank you very much

+ 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. Project with AddIn runs fine in Excel 2000, 2003 and 2007...2010 crashes
    By jaslake in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-27-2013, 10:10 AM
  2. Macro works fine in 2010, Crashing in 2003 - Posting problem code - Please Help?
    By RDAmidwest in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2012, 04:14 PM
  3. Code works fine in 2003 excel but fails in 2007
    By tanimytani in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2012, 11:40 AM
  4. Macro works fine in Excel 2003 but not in 2007
    By jackdebnam in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-24-2011, 12:00 PM
  5. Replies: 0
    Last Post: 07-27-2010, 12:49 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