Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Carriage Return using OLE2

Status
Not open for further replies.

krindler

Programmer
Jul 16, 2002
39
US
Hello...

Does anyone have any sample code of putting a Carriage Return, in the Header of an Excel File, using OLE2? I have been playing around with this for a while and am having no luck.

Your help is much appreciated...
 
I just insert an ascii character 13 which is the carriage return. Example:

OLE2.SET_PROPERTY(pagesetup, 'CenterHeader', '&"Tahoma,Bold" &14Line 1'||chr(13)||'Line 2'||chr(13)||'Line 3');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top