Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default write records to another worksheet based on criteria

Hi all.
Using xl xp pro

Trying to come up with a way to store user input from
schedule_build! to schedule_dat!

The data to be written based on user selection of profit center and
period

So if user selects pc 001 and period 5 record would be written from
schedule_build!E69:H69 to schedule_Dat!V5:Y5

Schedule templates are broken by periods 1-12
Some periods (Sept, Dec, Mar) are 5 week all others are 4 week
All templates stored on schedule_build!

Schedule_Dat! tables are divided:
Hours
Labor Hrs
Labor $
Each table 52 weeks/yr x 43 profit centers

Thanks for all of the great help


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default write records to another worksheet based on criteria

Use the Autofilter to make all but the records you are interested hidden.
Then copy the autofilter data (only visible records will be copied).
Turn on the macro recorder while you do it manually - then modify the code
to generalize it:

Data=Filter=Autofilter

in the dropdowns in your column, select your criteria.

Select a cell in the autofilter and do Ctrl+Shift+8 to select the data
region. Then edit =copy and go to the new sheet, then edit paste.
--
Regards,
Tom Ogilvy

"goss " wrote in message
...
Hi all.
Using xl xp pro

Trying to come up with a way to store user input from
schedule_build! to schedule_dat!

The data to be written based on user selection of profit center and
period

So if user selects pc 001 and period 5 record would be written from
schedule_build!E69:H69 to schedule_Dat!V5:Y5

Schedule templates are broken by periods 1-12
Some periods (Sept, Dec, Mar) are 5 week all others are 4 week
All templates stored on schedule_build!

Schedule_Dat! tables are divided:
Hours
Labor Hrs
Labor $
Each table 52 weeks/yr x 43 profit centers

Thanks for all of the great help


---
Message posted from http://www.ExcelForum.com/



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
copy multiple records based on criteria or total amount David Excel Discussion (Misc queries) 22 July 29th 09 10:58 PM
Count Unique records based on the Criteria in another colum Rajat Excel Worksheet Functions 1 December 1st 06 12:46 AM
Count Unique records based on the Criteria in another colum Rajat Excel Worksheet Functions 0 November 30th 06 03:43 AM
Count Unique records based on the Criteria in another colum Ron Coderre Excel Worksheet Functions 0 November 29th 06 06:28 PM
Show top five records based on meeting multiple criteria Joe D Excel Worksheet Functions 4 November 20th 05 11:51 PM


All times are GMT +1. The time now is 09:59 AM.

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"