Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    May 2002
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Excel UserForm ListBox (Windows 98 SE; Office 2K)

    I'm in Windows 98SE using VBA to develop a UserForm for input to an Excel 2k worksheet. On the form I have several listboxes. The first line of each listbox is "choose ..."; the user selects from each list and the selected item shows up as white-on-black (reverse type). So far, so good.

    But when I print the UserForm, the selected entries also print in reverse type. I want them to print black-on-white, the way the rest of the form does.

    I've tried setting the BackColor and ForeColor properties of the list boxes to vbWhite and vbBlack, respectively, in the print routine, but that also sets the contents back to "choose ...".

    I've also tried setting the ListStyle property to Option. The option buttons show up and print with the list item, but they still print in reverse type.

    Is there a way to fix this so that the selected items print on the UserForm, but in standard black-on-white?

  2. #2
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Excel UserForm ListBox (Windows 98 SE; Office 2K)

    Cross-posted here- please reply to that thread.
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

Posting Permissions

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