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

Erwin Craps - IT Helps Erwin.Craps at ithelps.be
Fri Mar 31 00:32:23 CST 2006


If I'm not mistaken, when using .copyrecordset to a formatted
spreadsheet your formatting will be killed.
I'm using VBA formatting on the spot for everything because my
spreadsheets are not straigth forward tables-type sheets.
But is does slow down the building of the spreadsheet.

But if it's only colomn based formatting, it will probably not matter
that much in speed.

Erwin


-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim
Sent: Friday, March 31, 2006 1:47 AM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] Excel Automation ... Setting Default Formatting
InExcel

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.
--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



More information about the AccessD mailing list