+ Reply to Thread
Results 1 to 13 of 13

Create printable daily work orders based on criteria within a column.

  1. #1
    Registered User
    Join Date
    09-05-2016
    Location
    USA
    MS-Off Ver
    2016
    Posts
    7

    Create printable daily work orders based on criteria within a column.

    Hi Everyone, I'm trying to do something a bit out of the ordinary and I'm not sure the best way to go about it.

    Basically we have a sheet which lists out the schedules for our guys broken down in a row and sorted by day. The girls in the office then take that information and write the work orders for the guys out by hand. Since the schedule only changes every 6 months. This way has worked fairly well so far.

    However I would like to use the power of excel to automate the process and make it much easier.

    Here is what I'm wanting to do. We currently have say 1000 rows. Each row will have the location, tech name, day, etc. What I'm wanting to do is create a button for each day of the week and when pressed it will search through each row looking for the corresponding day and then copy the column information for that row to the work order sheet and print that sheet to the default printer, then immediately go to the next row that corresponds with that day and do the same until it has run out of rows that correspond with that day.

    If anyone could help me get started with this I would greatly appreciate it!

    Thanks again!

  2. #2
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Create printable daily work orders based on criteria within a column.

    Hello MyDjinni,

    Perhaps the following code as a starting point may help:-


    Please Login or Register  to view this content.
    I've attached my test work book for you to peruse:-

    When you enter a day in the search box in cell A1 of sheet1 and click on the "FIND" button, the code will filter, in this case, Column C for all day values entered into the search box, transfer the relevant data to sheet2 and then print the result.

    I've only made assumptions with the above as we don't have a sample of your work book to work from and I feel that your Work Orders sheet just may be set out somewhat differently. So please upload a sample of your work book (use dummy data - just a few rows) and place some notes giving a precise description of how you would like it to work.

    I hope that this helps.

    Cheerio,
    vcoolio.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-05-2016
    Location
    USA
    MS-Off Ver
    2016
    Posts
    7

    Re: Create printable daily work orders based on criteria within a column.

    Awesome, I'll give this a try and come back when I have questions.


    Thanks again!

  4. #4
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Create printable daily work orders based on criteria within a column.

    You're welcome MyDjinni. Come back any time.

    Cheerio,
    vcoolio.

  5. #5
    Registered User
    Join Date
    09-05-2016
    Location
    USA
    MS-Off Ver
    2016
    Posts
    7

    Re: Create printable daily work orders based on criteria within a column.

    Sorry for the delay in my response. I had an unexpected trip and just got a chance to really dig into it. I like what you've done, but I need something just a tad different.

    Here is what I've partially come up with.

    Please Login or Register  to view this content.
    The problem I've run into is rather than copy the value from one of the columns from the row that Saturday was found on. It's copying from whichever cell I had clicked on before pressing the button.

    My goal is to load those variables with the values of the cells from each column within the row that contains Saturday in column "C". Then copy those values to the cells in a workorder sheet I'm designing.

    After the sheet is reviewed and printed then it will repeat the process for the next line until it hits the bottom.

    I'm sure I'm making a rather obvious mistake, hopefully your wiser eyes can help see what I cannot.

    Thanks again!

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Create printable daily work orders based on criteria within a column.

    I assume your looking for a string called Saturday.
    Please Login or Register  to view this content.
    Given it some thought and my best guess is that you need 2 codes. The first to filter and copy the data of the day required to a second sheet (like vcoolio's code but without the printing part) where you can review all the data and then a second one which loops through the filtered data and automatically fills your workorder sheet and prints every row.
    Last edited by bakerman2; 09-11-2016 at 08:17 PM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  7. #7
    Registered User
    Join Date
    09-05-2016
    Location
    USA
    MS-Off Ver
    2016
    Posts
    7
    Quote Originally Posted by bakerman2 View Post
    I assume your looking for a string called Saturday.
    Please Login or Register  to view this content.
    Given it some thought and my best guess is that you need 2 codes. The first to filter and copy the data of the day required to a second sheet (like vcoolio's code but without the printing part) where you can review all the data and then a second one which loops through the filtered data and automatically fills your workorder sheet and prints every row.
    The main issue I'm having right now is i can't seem to figure out how to select the row that contains Saturday. I want to select the row and then copy values from the cells in that row into the variables I have declared.

    Any help with that would be amazing.

    Thanks guys!

    P.S. vcoolios code is great, but it copies all the rows at once to another sheet, where as I need to copy cells one at a time, row by row.

    Sorry for the edit. Thanks again!
    Last edited by myDjinni; 09-13-2016 at 07:26 PM.

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Create printable daily work orders based on criteria within a column.

    I guess you are missing the point here. Let's walk through every step to try to explain.
    1. Gather all information of a certain day.
    2. Put the data row by row in your order sheet.
    3. REVIEW data and print, then goto next row.
    4. Repeat proccess for all the specific rows.

    So far so good but the only problem is that you cannot pause the code in case you have to change some of the information on your order sheet and then resume.
    This gives you 2 options.
    Either you print your orders with the data AS IS on your summary sheet (and hope all data is correct) OR you collect all data of that particular day and copy it to a Temporary sheet, do the revisions needed and with a second macro use the data on the temp sheet to fill your order sheet row by row and print (afterwards you can delete temp sheet automatically in the second code)
    The choice is yours.

  9. #9
    Registered User
    Join Date
    09-05-2016
    Location
    USA
    MS-Off Ver
    2016
    Posts
    7

    Re: Create printable daily work orders based on criteria within a column.

    I gotcha, I'll have them review prior to executing the code. So we wont need to pause the script.

    So it will go like this
    1. Gather all information of a certain day.
    2. Put the data cell by cell for the current row in the work order.
    3. Send workorder to printer, then goto next row.
    4. Repeat process for all the specific rows.

    I will put a button up for each day (Monday - Sunday) and have them click on the button to run the code specific for that day.

    I apologize for the confusion.

    Thanks again,

  10. #10
    Registered User
    Join Date
    09-05-2016
    Location
    USA
    MS-Off Ver
    2016
    Posts
    7

    Re: Create printable daily work orders based on criteria within a column.

    Sorry for the delay in response. I just wanted to check in and see if anyone had any ideas on how we could accomplish the task I laid out.

    Thanks again!

  11. #11
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Create printable daily work orders based on criteria within a column.

    would be better if we see your workorder sheet

    this gives you the data in variable

    Please Login or Register  to view this content.
    Kind Regards
    Leo

  12. #12
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Create printable daily work orders based on criteria within a column.

    I'm sorry but from your last reply I assumed you had everything you needed and were going on your own.
    The example sheet shows you how I would proceed. There's a button for every day on the Data sheet, when clicked all data from that day is moved to a temp sheet.
    Now you can revise all your data. When done move to the Order sheet where there's a second button and when clikcked all data from the Temp sheet is printed row by row.
    In the end the Temp sheet is deleted and you can select another day on your Data sheet.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    09-05-2016
    Location
    USA
    MS-Off Ver
    2016
    Posts
    7

    Re: Create printable daily work orders based on criteria within a column.

    Thanks guys, I'll update you shortly once I get a chance to apply what you've given me.

    Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Find all Orders in column, create a new list on different sheet
    By banaanas in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-09-2015, 01:04 AM
  2. Create orders log and monthly report for all orders
    By adfo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2013, 09:39 AM
  3. [SOLVED] Sum like orders, then create multiple rows (prod records) based on sum...
    By mvgoggans in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2013, 03:56 PM
  4. [SOLVED] Create a list that has more than one column based on a criteria
    By limebaish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-01-2013, 09:21 PM
  5. Replies: 3
    Last Post: 03-18-2011, 11:28 AM
  6. [SOLVED] BLANK WORK ORDERS OR DAILY ACTIVITY SHEET TEMPLATES
    By ruth in forum Excel General
    Replies: 1
    Last Post: 11-01-2005, 04:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1