Consulting

Results 1 to 3 of 3

Thread: Solved: Number format issue in multicolumn listbox

  1. #1
    VBAX Contributor
    Joined
    Apr 2006
    Posts
    144
    Location

    Solved: Number format issue in multicolumn listbox

    Happy New Year,

    Hope you all had a good break. I have a userform with a listbox linking to a worksheet range with 4 columns of data. The figures in 1 of the columns in % format. However, when these numbers are populated into the listbox their format is lost. How do I retain the number format of that particular column when shown in the listbox?

    Thanks in advance.

    Regards


    kp

    PS: I attached a sample file for your reference.

  2. #2
    VBAX Tutor nst1107's Avatar
    Joined
    Nov 2008
    Location
    Monticello
    Posts
    245
    Location
    On the spreadsheet, in the cells that display the percentage, change the formula to something like this: "=TEXT(C2/B2,"#0.0%")".

  3. #3
    VBAX Contributor
    Joined
    Apr 2006
    Posts
    144
    Location
    Brilliant. Thanks Nate for your quick response.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •