Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Column Headers

Hi,

I am trying to populate an Excel Worksheet from VB6. I can't figure out how
to put the column headers on the column header area of Excel. In other
words, I have columns 'First Name', 'Middle Name', etc. I want the area
where Excel names the columns 'A', 'B', etc. to have my headers. The best I
have been able to do is get them into the first row.

Also, is there a way to trim the number of columns so that no new blank
columns appear as the user horizontally scrolls past the last column with
data?

I hope this is clear. Thanks.

Otis


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Column Headers

Hi
you can't change Excel's column headers. The best you can do (as you
have already discovered) is population row 1 and hiding Excel's column
headings

--
Regards
Frank Kabel
Frankfurt, Germany
"Otis" schrieb im Newsbeitrag
...
Hi,

I am trying to populate an Excel Worksheet from VB6. I can't figure

out how
to put the column headers on the column header area of Excel. In

other
words, I have columns 'First Name', 'Middle Name', etc. I want the

area
where Excel names the columns 'A', 'B', etc. to have my headers. The

best I
have been able to do is get them into the first row.

Also, is there a way to trim the number of columns so that no new

blank
columns appear as the user horizontally scrolls past the last column

with
data?

I hope this is clear. Thanks.

Otis



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Column Headers

Hi Otis

You can't replace them

But you can use window-Freeze Panes in the menubar
To freeze the first column and Row select cell b2 and do windows -Freeze Panes

You can put your own headers in the first row and column now

Under Tools -options -View uncheck row & column headers so
the default row and column headers are gone


You can hide the column you don't use

1 Select the first column next to your last column with data
2 CTRL-SHIFT-RIGHT ARROW
3 Right click on the selection and choose Hide


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Otis" wrote in message ...
Hi,

I am trying to populate an Excel Worksheet from VB6. I can't figure out how
to put the column headers on the column header area of Excel. In other
words, I have columns 'First Name', 'Middle Name', etc. I want the area
where Excel names the columns 'A', 'B', etc. to have my headers. The best I
have been able to do is get them into the first row.

Also, is there a way to trim the number of columns so that no new blank
columns appear as the user horizontally scrolls past the last column with
data?

I hope this is clear. Thanks.

Otis




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Column Headers

You can't change the labels for the columns or rows. (beyond the automatic
changes made by change the reference style).

--
Regards,
Tom Ogilvy

"Otis" wrote in message
...
Hi,

I am trying to populate an Excel Worksheet from VB6. I can't figure out

how
to put the column headers on the column header area of Excel. In other
words, I have columns 'First Name', 'Middle Name', etc. I want the area
where Excel names the columns 'A', 'B', etc. to have my headers. The best

I
have been able to do is get them into the first row.

Also, is there a way to trim the number of columns so that no new blank
columns appear as the user horizontally scrolls past the last column with
data?

I hope this is clear. Thanks.

Otis




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Column Headers

Thanks Everyone. Its is almost as good to know when something can't be done
as is to know how something can be done.

Otis


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display index of column headers in column A MZ Excel Discussion (Misc queries) 9 January 17th 10 06:35 PM
lookup using column headers and row headers Memphus01 Excel Discussion (Misc queries) 1 April 13th 09 04:57 PM
Column headers ALRC Excel Discussion (Misc queries) 2 January 3rd 08 06:07 PM
make column values column headers dunskii Excel Discussion (Misc queries) 5 September 19th 06 12:00 PM
Excel - returning column headers in a seperate column ExcelConfused Excel Discussion (Misc queries) 1 March 28th 06 02:49 PM


All times are GMT +1. The time now is 04:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"