+ Reply to Thread
Results 1 to 9 of 9

Form Control List Box problem with listcount

  1. #1
    Registered User
    Join Date
    05-22-2011
    Location
    chennai
    MS-Off Ver
    Excel 2003
    Posts
    71

    Form Control List Box problem with listcount

    Hi Everyone

    I'm trying to change "activex control listbox" to "form control list" box but I can't able to perform some vba operations. Such as listcount...etc and below is my code for activex listbox and I need to change it to form control list box. Name of the list box :List Box 45"

    Please assist me

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Form Control List Box problem with listcount

    You need to use the ControlFormat object of the shape in order to get to the usual List properties

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    05-22-2011
    Location
    chennai
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: Form Control List Box problem with listcount

    Andy thank you so much for your reply but I don't how to modify with my code could you please help me on this.

    Please do reply

    Thanks
    Thiru

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Form Control List Box problem with listcount

    Well what have you tried so far?

  5. #5
    Registered User
    Join Date
    05-22-2011
    Location
    chennai
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: Form Control List Box problem with listcount

    Andy

    What I have done is I have inputed your code in "UserForm_Activate()" and modified the other command codes with "objLb" for List box(e.g. Sheets("ISIP").objLb.List(Sheets("ISIP").objLb.ListCount - 1, 1) = Sheets("2011").Range("T" & i)

    Please help me on this.

    Thanks
    Thiru

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Form Control List Box problem with listcount

    Before you go any further with this you know Form listbox does not have multiple columns?

  7. #7
    Registered User
    Join Date
    05-22-2011
    Location
    chennai
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: Form Control List Box problem with listcount

    Andy

    For your reference i copied entire code - Note the form list box is in sheet ISIP

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-22-2011
    Location
    chennai
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: Form Control List Box problem with listcount

    I there any other way that I can use multiple column as like listbox - what I meant is anyother controls other than activex.

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Form Control List Box problem with listcount

    Not on the work sheet.

    Depending on the content of the listbox you could concatenate the text per row.

+ 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