+ Reply to Thread
Results 1 to 4 of 4

Help modifying code

  1. #1
    Registered User
    Join Date
    01-10-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    20

    Help modifying code

    Could someone please help with the following code. My Zip codes are numeric.. and there is a note in the code stating the following:

    caution if numeric zip codes, use CStr(c) instead

    I have no idea where to go from here. Any help would be appreciated.

    Thanks


    Please Login or Register  to view this content.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Help modifying code

    I don't know where you got the code from, but using CStr shouldn't be necessary. It's too complicated anyway ad the loops will slow the code down. Try this instead

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    01-10-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Help modifying code

    Thanks Roy

    Is there anyway to take the selection from the combo box and have it displayed in a list box?

    Basically what I am trying to do is to list all the entries with the same zip code.

    Zip is in column a
    name is in column b
    refrence number is in column c

    Thanks again for the help.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Help modifying code

    I would filter the sheet and then load the results to the listbox, see my example FilterForm

+ 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