PC Review


Reply
Thread Tools Rate Thread

Where do the header columns come from in a form?

 
 
ajnmx
Guest
Posts: n/a
 
      28th Feb 2008
Help!! Driving me crazy. Bit new to forms and the like, trying to
reverse engineer a bit of VBA. There's a form called
frmFaxRoomingLists. When I click on it the ListView is just a blank
white box but when it opens there are column headers (hotel,
telephone, fax number etc) and for the life of me I can't work out how
these headers appear. I've stepped through the code that displays it
and I can't see anything there, and I can't see anything in the
properties. But they must come from somewhere. Help!!
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      28th Feb 2008
It is probably added either by the RowSource property of the form or by the
add.list or add.item methods in the initialize event of the UserForm. To
check for the RowSource property, open the VBE by pressing Alt + F11. In if
the form does not appear in the code windo then find it in the Project window
on the left and click it to display it. Then click the control on the form
that displays the list. The properties window should be displayed at the
lower left where you can scroll to find Row Source which will give you the
location of the items that show when the form is loaded. If there is no
entry in the Row Source line then double click the form and it should display
the code module where you can look for the UserForm_Initialize macro. It
should then identify how the items are added.

"ajnmx" wrote:

> Help!! Driving me crazy. Bit new to forms and the like, trying to
> reverse engineer a bit of VBA. There's a form called
> frmFaxRoomingLists. When I click on it the ListView is just a blank
> white box but when it opens there are column headers (hotel,
> telephone, fax number etc) and for the life of me I can't work out how
> these headers appear. I've stepped through the code that displays it
> and I can't see anything there, and I can't see anything in the
> properties. But they must come from somewhere. Help!!
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Header Columns Doug Microsoft Excel Misc 2 6th Oct 2009 09:53 AM
datagrid - 2 header columns Mortar Microsoft ASP .NET 4 23rd Nov 2005 05:45 PM
Datagrid Header Columns =?Utf-8?B?RGlvZ28gQWx2ZXMgLSBTb2Z0d2FyZSBEZXZlbG9w Microsoft C# .NET 0 6th Aug 2005 03:19 PM
Freezing Columns and Header =?Utf-8?B?V2VuZGo0MjE=?= Microsoft Excel Misc 10 4th Jun 2004 06:50 PM
Changing continuous form header and data at runtime - suppressing columns AlanD Microsoft Access Forms 2 19th Feb 2004 08:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:02 PM.