LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 18 Nov 2008 16:08:18 -0800
Reply-To:   "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Subject:   Re: Libname excel named range report formatting woes
In-Reply-To:   A<DA617A88F598DE4888173E76E7E0783D035D3166@EXVS07.net.ucsf.edu>
Content-Type:   text/plain; charset="us-ascii"

Hi Jim -

Yes I have seen this behavior where writing data to a preformatted worksheet alters the cell formats within the targeted range. My kludge was to write data to a hidden worksheet (the SAS libname Excel engine doesn't care if the target range is on a hidden worksheet) and then have the cells on the formatted page read the data from the hidden data page.

Paul Choate DDS Data Extraction (916) 654-2160

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Anderson, James Sent: Monday, November 17, 2008 4:00 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Libname excel named range report formatting woes

I'm creating reports using libname excel and writing to a named range. I have preformatted my columns in excel. I have date columns, time columns and others. It looks like the first missing value causes all subsequent values in a column to use a different/wrong format. For example, the time columns start using a date format, the date columns start using a 4-digit year instead of 2-digit year.

Anyone have experience with this and know of a work-around?

Thanks,

Jim Anderson

UCSF


Back to: Top of message | Previous page | Main SAS-L page