Group:  Microsoft Word ยป microsoft.public.word.vba.userforms
Thread: list box headings

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

list box headings
Jim <joc[ at ]nospam.net> 15.09.2006 02:22:22
Hello,

I have a userform with a listbox that is filled with data from an access
database file, using the listbox.list method. It all works fine, but is
there any way to fill in the column headings with the names of the fields,
preferably not directly as the database field names are stupid. I tried
putting the correct header names in the caption property in the database -
no good. Unfortunately, I can not change the field names directly as they
are used by other programs.


using access 2003, word 2003 , DAO to transfer the data.

Thanks

Jim
Re: list box headings
"Doug Robbins - Word MVP" <dkr[ at ]REMOVECAPSmvps.org> 15.09.2006 03:45:36
You could use labels on the userform, positioned to suit the column widths
in the listbox and with captions being whatever you want them to be.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Jim" <joc[ at ]nospam.net> wrote in message
news:Xns983EE3A20D715Joconnoraspsmnet[ at ]216.196.97.136...
[Quoted Text]
> Hello,
>
> I have a userform with a listbox that is filled with data from an access
> database file, using the listbox.list method. It all works fine, but is
> there any way to fill in the column headings with the names of the fields,
> preferably not directly as the database field names are stupid. I tried
> putting the correct header names in the caption property in the database -
> no good. Unfortunately, I can not change the field names directly as they
> are used by other programs.
>
>
> using access 2003, word 2003 , DAO to transfer the data.
>
> Thanks
>
> Jim


Re: list box headings
Jim <joc[ at ]nospam.net> 19.09.2006 03:14:28
Doug,

Thank you for answering so quickly. That will work perfectly. Like so
many other things, keeping it straightforward is the best

Jim


"Doug Robbins - Word MVP" <dkr[ at ]REMOVECAPSmvps.org> wrote in
news:eebNtlH2GHA.4388[ at ]TK2MSFTNGP03.phx.gbl:

[Quoted Text]
> You could use labels on the userform, positioned to suit the column
> widths in the listbox and with captions being whatever you want them
> to be.
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net