×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Centering a Column Heading

Centering a Column Heading

Centering a Column Heading

(OP)
How do I center a column heading?
The report is written to Excel 2000.

Thanks,

Leo   

RE: Centering a Column Heading

try :
TABLE FILE ..
PRINT ....
ON TABLE SET STYLE *
TYPE=TITLE, JUSTIFY=CENTER,$
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END

OZ

RE: Centering a Column Heading

(OP)
Thanks, but that would center ALL column headings.
I just need to center some; not all.

Thanks,

Leo   

RE: Centering a Column Heading

If you need to center one line just you can use LINE=n in the stylesheet.  If you need part of a line left justified and part centered, that gets a little trickier.

RE: Centering a Column Heading

(OP)
Let's say I have ten (10) Columns, but I only need
columns 3, 5, and 7 centered.

I know how to do that in PDF,
You say, Column = N3 Justify = Center, etc.

But, I don't know how for Excel 2000

Thanks,

Leo   

RE: Centering a Column Heading

This worked for me in Excel 2000:

TABLE FILE ..
PRINT ....
ON TABLE SET STYLE *
TYPE=HEADING, LINE=3, OBJECT=TEXT, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=5, OBJECT=TEXT, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=7, OBJECT=TEXT, JUSTIFY=CENTER, $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END

Hope this helps!


Doug

RE: Centering a Column Heading

(OP)
That only works for my Headings; not my column headings.
I have 8 line headings,
then i have my column headings.

I only need to center some of my column headings.

Thanks,

Leo   

RE: Centering a Column Heading

OK.  I tiied this and it seemed to work:

TABLE FILE ..
PRINT ....
ON TABLE SET STYLE *
TYPE=TITLE, COLUMN=COLUMN3_NAME, JUSTIFY=CENTER, $
TYPE=TITLE, COLUMN=COLUMN5_NAME, JUSTIFY=CENTER, $
TYPE=TITLE, COLUMN=COLUMN7_NAME, JUSTIFY=CENTER, $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END

Try that and let me know if it works.


Doug

Doug

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close