+ Reply to Thread
Results 1 to 2 of 2

listbox control size (vba)

  1. #1
    Registered User
    Join Date
    03-30-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Angry listbox control size (vba)

    Hi,

    I have an excel sheet, where i have about 10 activex command buttons forming a vertical menu. I have about 10 listboxes on top of each other. When i click a text box it populates the listbox with some data.

    Now the problem is sometimes when i click on a button the list box loses its size and shrinks. This is what in buttons click event:

    Please Login or Register  to view this content.
    I tried setting the height width and top properties but doesn't seem to work. Any idea what i'm doing wrong?

    Thanks in advance.
    Addy

  2. #2
    Registered User
    Join Date
    03-28-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: listbox control size (vba)

    Hey Addy,

    Is it just this particular button click event that adjusts the listbox size or does it happen when you click other buttons too? Is it just the one list box?

    Other than the top/width/height that you have added in, I do not see a problem with that macro.

    If you could add the portion of the file your having trouble with we might be able to narrow it down a bit more for you.
    Warm regards,

    Shampoo Monkey

    If you are happy with the results, please add to my reputation by clicking the icon next to the Post # in the bar above this post.

+ 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