Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Automate Worksheet

Hi all!
I'm new to the Excel group; I develop in Access. Here's my
question/dillemma:

I have a client that needs to see there data in XLS format, thus I created a
script from within Access to dump a specific Crosstab Query into an XLS work
sheet. The client now wants to see the data grouped by specific criteria
(Divisions) within seperate workbooks in 1 spreadsheet. I almost sure that I
can't specify workbooks from with MS Acces; thus I need a way of automating
this process from with Excel. Obviously this can be achieved by creating a
macro, but I don't know where to start. Example:

I want to look at the 1st column (Division) and copy every corresponding
cell that meets that specific Division criteria to a worksheet.

Any thoughts?
Thanks in advance!
Anthony Viscomi


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Automate Worksheet

A cross tab query is Access's version of pivot tables. Why not create a pivot
table in Excel that queries the access database. (Menu) Data - Pivot Table
in Excel. Take a look at it and give it a try. Doing it this way also
eliminates the pesky 65,535 row limitation in Excel. If not you could also
look at using the query function in excel which could be used to grab data
from your Cross Tab... If you need some more help just ask.

Hope this Helps...

"Anthony Viscomi" wrote:

Hi all!
I'm new to the Excel group; I develop in Access. Here's my
question/dillemma:

I have a client that needs to see there data in XLS format, thus I created a
script from within Access to dump a specific Crosstab Query into an XLS work
sheet. The client now wants to see the data grouped by specific criteria
(Divisions) within seperate workbooks in 1 spreadsheet. I almost sure that I
can't specify workbooks from with MS Acces; thus I need a way of automating
this process from with Excel. Obviously this can be achieved by creating a
macro, but I don't know where to start. Example:

I want to look at the 1st column (Division) and copy every corresponding
cell that meets that specific Division criteria to a worksheet.

Any thoughts?
Thanks in advance!
Anthony Viscomi



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Automate Worksheet

Great, I'll try this rught away.
"Jim Thomlinson" wrote in message
...
A cross tab query is Access's version of pivot tables. Why not create a
pivot
table in Excel that queries the access database. (Menu) Data - Pivot
Table
in Excel. Take a look at it and give it a try. Doing it this way also
eliminates the pesky 65,535 row limitation in Excel. If not you could also
look at using the query function in excel which could be used to grab data
from your Cross Tab... If you need some more help just ask.

Hope this Helps...

"Anthony Viscomi" wrote:

Hi all!
I'm new to the Excel group; I develop in Access. Here's my
question/dillemma:

I have a client that needs to see there data in XLS format, thus I
created a
script from within Access to dump a specific Crosstab Query into an XLS
work
sheet. The client now wants to see the data grouped by specific criteria
(Divisions) within seperate workbooks in 1 spreadsheet. I almost sure
that I
can't specify workbooks from with MS Acces; thus I need a way of
automating
this process from with Excel. Obviously this can be achieved by creating
a
macro, but I don't know where to start. Example:

I want to look at the 1st column (Division) and copy every corresponding
cell that meets that specific Division criteria to a worksheet.

Any thoughts?
Thanks in advance!
Anthony Viscomi





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Automate Worksheet

Pivot table won't work, the cell ranges (# of rows, columns will always
reamin the same) may differ from month to month. I need to create some sort
of script that looks for specific values (that I'll define) and copies or
moves the entire range of cells for that value to a new worksheet. I
envision the execution of this script at startup/opening.

"Jim Thomlinson" wrote in message
...
A cross tab query is Access's version of pivot tables. Why not create a
pivot
table in Excel that queries the access database. (Menu) Data - Pivot
Table
in Excel. Take a look at it and give it a try. Doing it this way also
eliminates the pesky 65,535 row limitation in Excel. If not you could also
look at using the query function in excel which could be used to grab data
from your Cross Tab... If you need some more help just ask.

Hope this Helps...

"Anthony Viscomi" wrote:

Hi all!
I'm new to the Excel group; I develop in Access. Here's my
question/dillemma:

I have a client that needs to see there data in XLS format, thus I
created a
script from within Access to dump a specific Crosstab Query into an XLS
work
sheet. The client now wants to see the data grouped by specific criteria
(Divisions) within seperate workbooks in 1 spreadsheet. I almost sure
that I
can't specify workbooks from with MS Acces; thus I need a way of
automating
this process from with Excel. Obviously this can be achieved by creating
a
macro, but I don't know where to start. Example:

I want to look at the 1st column (Division) and copy every corresponding
cell that meets that specific Division criteria to a worksheet.

Any thoughts?
Thanks in advance!
Anthony Viscomi





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Automate Worksheet

Don't run the Excel Pivot Table off of the Cross tab query. Run it directly
off of the souce table or create a source query. The pivot table can be set
to refresh on open, just make sure that the source mdb file stays in the same
spot.

Otherwise, I assume your are just importing the cross tab to Excel. You need
to place a script into the ThisWorkbook module in the OnOpen event.

How familiar are you with VBA?

"Anthony Viscomi" wrote:

Pivot table won't work, the cell ranges (# of rows, columns will always
reamin the same) may differ from month to month. I need to create some sort
of script that looks for specific values (that I'll define) and copies or
moves the entire range of cells for that value to a new worksheet. I
envision the execution of this script at startup/opening.

"Jim Thomlinson" wrote in message
...
A cross tab query is Access's version of pivot tables. Why not create a
pivot
table in Excel that queries the access database. (Menu) Data - Pivot
Table
in Excel. Take a look at it and give it a try. Doing it this way also
eliminates the pesky 65,535 row limitation in Excel. If not you could also
look at using the query function in excel which could be used to grab data
from your Cross Tab... If you need some more help just ask.

Hope this Helps...

"Anthony Viscomi" wrote:

Hi all!
I'm new to the Excel group; I develop in Access. Here's my
question/dillemma:

I have a client that needs to see there data in XLS format, thus I
created a
script from within Access to dump a specific Crosstab Query into an XLS
work
sheet. The client now wants to see the data grouped by specific criteria
(Divisions) within seperate workbooks in 1 spreadsheet. I almost sure
that I
can't specify workbooks from with MS Acces; thus I need a way of
automating
this process from with Excel. Obviously this can be achieved by creating
a
macro, but I don't know where to start. Example:

I want to look at the 1st column (Division) and copy every corresponding
cell that meets that specific Division criteria to a worksheet.

Any thoughts?
Thanks in advance!
Anthony Viscomi








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Automate Worksheet

Yes, I am exporting the cross-tab from Access into Excel. My VBA skills
aren't too bad. If someone could provide me with a "shell/outline" of what I
need to do; I am able to "fill in the blanks" with my own parameters.

Thanks!
"Jim Thomlinson" wrote in message
...
Don't run the Excel Pivot Table off of the Cross tab query. Run it
directly
off of the souce table or create a source query. The pivot table can be
set
to refresh on open, just make sure that the source mdb file stays in the
same
spot.

Otherwise, I assume your are just importing the cross tab to Excel. You
need
to place a script into the ThisWorkbook module in the OnOpen event.

How familiar are you with VBA?

"Anthony Viscomi" wrote:

Pivot table won't work, the cell ranges (# of rows, columns will always
reamin the same) may differ from month to month. I need to create some
sort
of script that looks for specific values (that I'll define) and copies or
moves the entire range of cells for that value to a new worksheet. I
envision the execution of this script at startup/opening.

"Jim Thomlinson" wrote in
message
...
A cross tab query is Access's version of pivot tables. Why not create a
pivot
table in Excel that queries the access database. (Menu) Data - Pivot
Table
in Excel. Take a look at it and give it a try. Doing it this way also
eliminates the pesky 65,535 row limitation in Excel. If not you could
also
look at using the query function in excel which could be used to grab
data
from your Cross Tab... If you need some more help just ask.

Hope this Helps...

"Anthony Viscomi" wrote:

Hi all!
I'm new to the Excel group; I develop in Access. Here's my
question/dillemma:

I have a client that needs to see there data in XLS format, thus I
created a
script from within Access to dump a specific Crosstab Query into an
XLS
work
sheet. The client now wants to see the data grouped by specific
criteria
(Divisions) within seperate workbooks in 1 spreadsheet. I almost sure
that I
can't specify workbooks from with MS Acces; thus I need a way of
automating
this process from with Excel. Obviously this can be achieved by
creating
a
macro, but I don't know where to start. Example:

I want to look at the 1st column (Division) and copy every
corresponding
cell that meets that specific Division criteria to a worksheet.

Any thoughts?
Thanks in advance!
Anthony Viscomi








  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Automate Worksheet

When you export from access are you creating a new workbook everytime, or
exactly how are you getting the data to Excel. If you create a new workbook
each time this gets a lot more difficult because the new workbook won't have
any code in it. If you are creating a new sheet you will need to know the
name of the new sheet. If you are overwiriting an existing sheet in an
existing workbook then this is not too bad.

"Anthony Viscomi" wrote:

Yes, I am exporting the cross-tab from Access into Excel. My VBA skills
aren't too bad. If someone could provide me with a "shell/outline" of what I
need to do; I am able to "fill in the blanks" with my own parameters.

Thanks!
"Jim Thomlinson" wrote in message
...
Don't run the Excel Pivot Table off of the Cross tab query. Run it
directly
off of the souce table or create a source query. The pivot table can be
set
to refresh on open, just make sure that the source mdb file stays in the
same
spot.

Otherwise, I assume your are just importing the cross tab to Excel. You
need
to place a script into the ThisWorkbook module in the OnOpen event.

How familiar are you with VBA?

"Anthony Viscomi" wrote:

Pivot table won't work, the cell ranges (# of rows, columns will always
reamin the same) may differ from month to month. I need to create some
sort
of script that looks for specific values (that I'll define) and copies or
moves the entire range of cells for that value to a new worksheet. I
envision the execution of this script at startup/opening.

"Jim Thomlinson" wrote in
message
...
A cross tab query is Access's version of pivot tables. Why not create a
pivot
table in Excel that queries the access database. (Menu) Data - Pivot
Table
in Excel. Take a look at it and give it a try. Doing it this way also
eliminates the pesky 65,535 row limitation in Excel. If not you could
also
look at using the query function in excel which could be used to grab
data
from your Cross Tab... If you need some more help just ask.

Hope this Helps...

"Anthony Viscomi" wrote:

Hi all!
I'm new to the Excel group; I develop in Access. Here's my
question/dillemma:

I have a client that needs to see there data in XLS format, thus I
created a
script from within Access to dump a specific Crosstab Query into an
XLS
work
sheet. The client now wants to see the data grouped by specific
criteria
(Divisions) within seperate workbooks in 1 spreadsheet. I almost sure
that I
can't specify workbooks from with MS Acces; thus I need a way of
automating
this process from with Excel. Obviously this can be achieved by
creating
a
macro, but I don't know where to start. Example:

I want to look at the 1st column (Division) and copy every
corresponding
cell that meets that specific Division criteria to a worksheet.

Any thoughts?
Thanks in advance!
Anthony Viscomi









Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automate Insert Worksheet & Name Benjamin Excel Discussion (Misc queries) 3 April 25th 08 09:09 PM
How can I automate the saving of a worksheet? maacmaac Excel Discussion (Misc queries) 1 September 8th 05 04:09 AM
How can I automate the naming of worksheet tabs? TJ Excel Discussion (Misc queries) 7 September 8th 05 12:01 AM
Automate worksheet copy Marco Excel Discussion (Misc queries) 6 August 1st 05 12:11 PM
Automate update of worksheet Pranoop Excel Programming 0 February 27th 04 10:56 PM


All times are GMT +1. The time now is 12:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"