T
Tom
I haven't done this before, so I'm not sure I can do it. I'm hoping someone can
provide some guidance, before I start trying to do something that can't be done.
I'm currently using Access 2000, but could *probably* get 2003, if necessary.
(I've been planning on getting 2003 sometime in the next fiscal year, which
starts next month.)
I want to move the contents of a table (minus a couple columns...if possible)
out to Excel. This part *seems* relatively straighforward. Although...I'm not
sure if I want to "copy", "transfer spreadsheet", or read thru the table rows
and write out one row at a time.
Then there's the formatting...
What I've been doing manually, that I'd *like* to do programmatically, if I can,
is:
1.) insert a row between rows 1 & 2.
2.) make rows 1 & 2 the rows I print on every page.
3.) set column widths.
4.) set certain columns to center its data.
5.) set row 1 for borders around each cell.
6.) set row 1 for bold printing.
7.) add gridlines.
8.) center vertically and horizontally.
9.) set left and right margins.
10.) set orientation to landscape.
11.) leave scaling at 100%.
12.) adding text to left & right header.
13.) setting font size & bold italic in header.
14.) adding text to left & right footer.
15.) setting font size & bold italic in footer.
Some of this would be uneccessary if Access could get Excel to use my default
workbook format, which from what I gather, can't be done. But I also haven't
been able to find any source where something like this is covered, where the
code examples are given, where properties that I can change are listed, and what
values are available/valid.
I'm hoping that someone could tell me if all this is possible, along with either
some code examples and/or somewhere I might find what I need. Any help you can
provide would be much appreciated.
Thanks in advance,
Tom
provide some guidance, before I start trying to do something that can't be done.
I'm currently using Access 2000, but could *probably* get 2003, if necessary.
(I've been planning on getting 2003 sometime in the next fiscal year, which
starts next month.)
I want to move the contents of a table (minus a couple columns...if possible)
out to Excel. This part *seems* relatively straighforward. Although...I'm not
sure if I want to "copy", "transfer spreadsheet", or read thru the table rows
and write out one row at a time.
Then there's the formatting...
What I've been doing manually, that I'd *like* to do programmatically, if I can,
is:
1.) insert a row between rows 1 & 2.
2.) make rows 1 & 2 the rows I print on every page.
3.) set column widths.
4.) set certain columns to center its data.
5.) set row 1 for borders around each cell.
6.) set row 1 for bold printing.
7.) add gridlines.
8.) center vertically and horizontally.
9.) set left and right margins.
10.) set orientation to landscape.
11.) leave scaling at 100%.
12.) adding text to left & right header.
13.) setting font size & bold italic in header.
14.) adding text to left & right footer.
15.) setting font size & bold italic in footer.
Some of this would be uneccessary if Access could get Excel to use my default
workbook format, which from what I gather, can't be done. But I also haven't
been able to find any source where something like this is covered, where the
code examples are given, where properties that I can change are listed, and what
values are available/valid.
I'm hoping that someone could tell me if all this is possible, along with either
some code examples and/or somewhere I might find what I need. Any help you can
provide would be much appreciated.
Thanks in advance,
Tom