write out colunm name

For questions and discussion related to reading in and working with data.
hardmann
Posts: 246
Joined: Sat Feb 26, 2011 9:49 pm

write out colunm name

Unread post by hardmann »

Dear Tom:

When writing XLSX files, there are dates columns but no column names. How can I add it?

Code: Select all

open copy IP_Index.xlsx
copy(dates,format=xlsx,org=columns) 2011:01 2024:12 IP_index  IP_index_sa
Best Regard
Hardmann
TomDoan
Posts: 7731
Joined: Wed Nov 01, 2006 4:36 pm

Re: write out colunm name

Unread post by TomDoan »

Do you mean no label over the date column?
hardmann
Posts: 246
Joined: Sat Feb 26, 2011 9:49 pm

Re: write out colunm name

Unread post by hardmann »

Dear Tom:
Yes it is.



Best Regard
Hardmann
Attachments
1745887262621.png
1745887262621.png (10.37 KiB) Viewed 1939 times
TomDoan
Posts: 7731
Joined: Wed Nov 01, 2006 4:36 pm

Re: write out colunm name

Unread post by TomDoan »

That was added with version 11.
hardmann
Posts: 246
Joined: Sat Feb 26, 2011 9:49 pm

Re: write out colunm name

Unread post by hardmann »

Dear Tom:

There is new problem.

Image

Best Regard
Hardmann
Attachments
1749597529833.png
1749597529833.png (7.63 KiB) Viewed 534 times
TomDoan
Posts: 7731
Joined: Wed Nov 01, 2006 4:36 pm

Re: write out colunm name

Unread post by TomDoan »

That's a known bug that will be fixed soon. However, you can just use the DFORMAT option to set the format for the date column.
hardmann
Posts: 246
Joined: Sat Feb 26, 2011 9:49 pm

Re: write out colunm name

Unread post by hardmann »

Dear Tom:

Thanks, It works.

copy(dates,format=xlsx,org=columns,dformat="YYYY:PP")

Best Regard
Hardmann
Post Reply