[AccessD] Excel Automation ... Setting Default Formatting In Excel

Hale, Jim Jim.Hale at FleetPride.com
Thu Mar 30 17:47:00 CST 2006


I use a template with a worksheet formatted the way I need. After opening
the template in code I create as many sheets as needed copying the
preformatted sheet. This is better then slugging it out in vba since the
inevitable tweaks to the format can be handled by simply changing the
template.


Jim Hale

-----Original Message-----
From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com]
Sent: Thursday, March 30, 2006 3:27 PM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] Excel Automation ... Setting Default Formatting In
Excel


Hi:

I have a fairly complex Access to Excel automation project, and having
conquered my named ranges issue, I'm wondering about the best way to set
default formatting for columns (percentages, decimals, conditional formats).

The application dynamically creates worksheets in the Excel workbook
(sometimes it has 5 worksheets, sometimes more) from data stored in Access. 

The data will always be in the same columns, (EX: column M is percent,
Column N is 2 decimals, etc.); Can I have Excel set defaults for these
columns before exporting/creating the data, or is it better to just do this
in VBA?

Thanks in advance.

Larry Mrazek
LCM Research, Inc.
www.lcm-res.com
lmrazek at lcm-res.com
ph. 314.432.5886
fx. 314.432.3304

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

***********************************************************************
The information transmitted is intended solely for the individual or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of or taking action in reliance upon this information by
persons or entities other than the intended recipient is prohibited.
If you have received this email in error please contact the sender and
delete the material from any computer. As a recipient of this email,
you are responsible for screening its contents and the contents of any
attachments for the presence of viruses. No liability is accepted for
any damages caused by any virus transmitted by this email.


More information about the AccessD mailing list