+ Reply to Thread
Results 1 to 10 of 10

Automated jobcard creation

  1. #1
    Registered User
    Join Date
    01-11-2022
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    5

    Smile Automated jobcard creation

    Dear friends and associates,

    I am trying to help automate a very manual process into a more automated process.

    Background: Small company that issues approx 30 jobcards a day which each job being manually typed and then saved as a PDF. Engineers then print and populate by hand when on site.

    Wish to achieve: We would like to just populate sheet 1 with the details which will automatically populate sheet 2.
    I have added a button on each row and would like that when the button is pressed, sheet 2 is automatically saved as a PDF to a folder on the desktop and then sheet 2 is cleared and ready for another job to be printed.

    Sheet 1 will be the master list of all repairs and will probably be saved on a month by month basis.

    I have uploaded the excel file and row 6 on sheet 1 identifies the cells on sheet 2 that need to be populated.

    I know a little bit on excel but this is way above my expertise.

    Would be extremely grateful if someone could help or point me in the write direction.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,196

    Re: Automated jobcard creation

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Each command button is associated with a row

    PDF file named as "Reference Number (From Column B)

    And thank you for providing the input/output cell correlations.
    Attached Files Attached Files
    Last edited by JohnTopley; 01-11-2022 at 04:30 PM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    01-11-2022
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    5

    Talking Re: Automated jobcard creation

    Hi John,

    I just tried the features and I am absolutely amazed. It works exactly how i wanted it to work. This will really help me in issuing job cards.
    Thank you so much for your help.

    If i wanted to add extra command buttons in Sheet 1 column A to approx row 250, do I need to add them manually and then modify the VBA as below.

    Private Sub CommandButton1_Click()
    Call Fill_Jobcard(2) ' row 2
    End Sub
    Private Sub CommandButton2_Click()
    Call Fill_Jobcard(3) ' row 3
    End Sub
    Private Sub CommandButton3_Click()
    Call Fill_Jobcard(4) ' row 4
    End Sub
    Private Sub CommandButton4_Click()
    Call Fill_Jobcard(5) ' row 5
    End Sub

    Still can't believe it......

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,196

    Re: Automated jobcard creation

    Yes you do but this is really not very practical (250 command buttons!) so I suggest a better option is to enter "From" and "To" rows [or reference numbers] and have a single Print button. Put these on a separate sheet - "Dashboard" is the common term (name) for this.

    Do you want to record the date the Job cards are printed? and are there ever re-prints?

    Let me know what you think and I will add the necessary VBA.
    Last edited by JohnTopley; 01-12-2022 at 02:41 AM.

  5. #5
    Registered User
    Join Date
    01-11-2022
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    5
    Quote Originally Posted by JohnTopley View Post
    Yes you do but this is really not very practical (250 command buttons!) so I suggest a better option is to enter "From" and "To" rows and have a single Print button. Put these on a separate sheet - "Dashboard" is the common term (name) for this.

    Let me know what you think and I will add the necessary VBA.
    I think that may work but id like to state a scenario and see if you think your above method will work.

    We only save as pdf when all information is received so sometimes we could be waiting a few days until to gather all the information. So lets say i have all the information for rows 2,3,4,5,11,15,33 and 44. Will the "from" and "to" method for saving still work.
    If it will, then excellent, but if not, would a checkbox on each row be a reasonable method and whichever checkbox is ticked, a single button would save all rows with a checkbox selected.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,196

    Re: Automated jobcard creation

    A Checkbox (or any Controls) have the same problem of checking each one so it is little different to Command buttons.

    Please Login or Register  to view this content.
    This uses a dropdown in column "A" with "Print": selected records are "copied" (via formula) to sheet "Print" where there is a button to call the macro.

    NOTE: I created folder "Jobcards" om my desktop.

    To test:

    1. Select 2 or more Job cards 2Jobcards" then invoke "Print"
    2. Clear "Print" (ClearContents) in "JobCards"
    3. Select a Job card which was selected in 1.
    4.Rerun "Print"
    Attached Files Attached Files
    Last edited by JohnTopley; 01-12-2022 at 08:04 AM.

  7. #7
    Registered User
    Join Date
    01-11-2022
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    5

    Re: Automated jobcard creation

    Hi John,

    When I select "Print" on Column A on the "Jobcard" sheet from the dropdown list, they do not appear on the "PRINT" sheet.
    I have tried then pressing the "Print Job Cards" button, but the data is not transferring into the "PRINT" sheet.

    Is it something i'm doing wrong?

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,196

    Re: Automated jobcard creation

    Don't know what you are doing as It works for me. Are you using my posted file as you need the formulas in "Print"?

    "Print" B6

    Copy across and down

    =IFERROR(INDEX(JobCards!B$2:B$1003,AGGREGATE(15,6,ROW($A$1:$A$1000)/(JobCards!$A$2:$A$1003="Print"),ROWS($1:1))),"")

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,196

    Re: Automated jobcard creation

    Another version which uses VBA to populate "Print" sheet

    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    01-11-2022
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    5

    Thumbs up Re: Automated jobcard creation

    Hi John,

    I have just tried the new version and it works perfectly.

    Many thanks for your help and time.

    Much appreciated.


+ 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. Automated creation of a two unique lists from a source sheet
    By jrudback in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2020, 01:04 PM
  2. Automated timeline creation
    By Balakai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-15-2017, 03:22 AM
  3. Automated Creation of PivotTables Fails
    By phxandy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-06-2012, 07:03 PM
  4. Automated Data Sorting/Table Creation
    By bwp2006 in forum Excel General
    Replies: 1
    Last Post: 02-17-2011, 08:40 PM
  5. Automated Worksheet Creation from Cell Data
    By davis8383 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-03-2009, 10:33 AM
  6. Macro for automated Pie-charts creation
    By qaz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-29-2008, 05:13 AM
  7. Automated Template Creation
    By nel1215 in forum Excel General
    Replies: 3
    Last Post: 03-19-2007, 05:34 AM

Tags for this Thread

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