+ Reply to Thread
Results 1 to 10 of 10

Checkbox problems 2

  1. #1
    Registered User
    Join Date
    11-06-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    12

    Checkbox problems 2

    Hello everyone!

    Please, help me with my Checkbox.

    I can't change the column width by checkbox.

    Code

    Please Login or Register  to view this content.
    It doesn't show any error and doesn't change the width

  2. #2
    Registered User
    Join Date
    11-06-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Checkbox problems 2

    Also I tryed the alternative way. I bound CheckBox with the cell (Range("B4")) and added macros for Worksheet_Change.

    Please Login or Register  to view this content.
    But it doesn't react to this changes

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Did you try using the linked cell in the Click event?
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    11-06-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Checkbox problems 2

    Quote Originally Posted by Norie View Post
    Did you try using the linked cell in the Click event?
    Sorry, i don't really know how to do that. Like this?

    Please Login or Register  to view this content.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Use the code you have in the Change event to check B4.

  6. #6
    Registered User
    Join Date
    11-06-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Checkbox problems 2

    Quote Originally Posted by Norie View Post
    Use the code you have in the Change event to check B4.
    I think it doesn't perceive this as a change. Becouse it's automatic changes.

    P.S. I' a vba beginner, so I don't really underrtand much

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    It doesn't need to be a change, the Click event is triggered when you click the checkbox.

  8. #8
    Registered User
    Join Date
    11-06-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Checkbox problems 2

    Yes. Meyybe the reason is that I've got excel on russian lang and procedures have names on russian too


    This construstion doesn't work:
    Please Login or Register  to view this content.
    What is the parent object name of "checkbox"

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Checkbox problems 2

    I don't think that's the problem, VBA is usually (always?) in American English.

    This is what I'm suggesting.
    Please Login or Register  to view this content.
    If that doesn't work can you attach the workbook?

  10. #10
    Registered User
    Join Date
    11-06-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Checkbox problems 2

    Working perfectly. Thanks a lot!

    Yes, I believed that VBA always in english.. But I tryed so meny configurations today so I started to mistrust. When I Record macros it's always on russian lang

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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