Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Automating Splitting one worksheet

We pull information from an Access database using a select query and
convert the result to Excel. Now we have to change the column widths to
handle the information and separate the information by Region. Is it
possible to create a macro of VBA code to help do this more
effectively, change the column width on the initial worksheet and then
creat worksheets for each region and populating them with their data.
We moving from a monthly report to a weekly report and automation is
really needed. Thanks for our help.

Frank

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Automating Splitting one worksheet

Frank,
Can't you edit the SQL to use "<SQL SELECT text WHERE Region=?", then
..Refresh the query.
Copy/paste or Pastespecial the results to desired/new WS.
Repeat for next region.

As for column widths, look into .AutoFit, if that's what you mean.

NickHK

"FJB" wrote in message
ups.com...
We pull information from an Access database using a select query and
convert the result to Excel. Now we have to change the column widths to
handle the information and separate the information by Region. Is it
possible to create a macro of VBA code to help do this more
effectively, change the column width on the initial worksheet and then
creat worksheets for each region and populating them with their data.
We moving from a monthly report to a weekly report and automation is
really needed. Thanks for our help.

Frank



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
Automating a Worksheet hankb Excel Worksheet Functions 6 March 23rd 10 10:48 PM
Automating a worksheet in Excel 2003 hankb Excel Worksheet Functions 2 March 22nd 10 09:09 PM
automating a worksheet/workbook helios gaia Excel Discussion (Misc queries) 1 June 4th 09 09:32 PM
Automating Worksheet Names Tenaj Excel Worksheet Functions 16 January 13th 08 03:13 PM
Need help with automating the updating of a function in worksheet [email protected] Excel Worksheet Functions 4 February 10th 06 03:33 PM


All times are GMT +1. The time now is 03:51 PM.

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

About Us

"It's about Microsoft Excel"