+ Reply to Thread
Results 1 to 7 of 7

Copy selected data, paste on sheet2, then create a pdf.

  1. #1
    Registered User
    Join Date
    08-10-2020
    Location
    Gothenburg, Sweden
    MS-Off Ver
    2016
    Posts
    21

    Copy selected data, paste on sheet2, then create a pdf.

    Hello all,

    I would appreciate some help with creating 2 pcs of macros with tha following function:

    1, Sheet Equipment List, when rows are selected by checking the check-box in column B(Add to Pick List) and then the button "Add To Pick List" is being clicked, the selected rows column C to I should be copied and pasted on sheet Pick List starting on row 10 from column B to H.

    2, Sheet Pick List, when the button "Create an Order" is being clicked following things should happen:

    a, A pdf are created with the name (data copied from heading) "Project Location, Project Number, Name, Date.pdf". If it´s possible I want to
    choose a location in the code where the file is to be saved, if not possible, a FileDialogFolderPicker. And if the pdf is created without the three
    buttons in the heading that would be nice but not important.
    b, Sheet Equipment List, update selected rows to "On Project" in column M(Status)
    c, Sheet Equipment List, update selected rows with info from heading on sheet Pick List, Date to On Project Date, Name to Responsible, Project
    Number to Project Number and Project Location to Project Location.
    d, Sheet Equipment List, uncheck the check-boxes in column B(Add to Pick List)
    e, Sheet Pick List, clear pick list from row 10..

    Take care..
    Attached Files Attached Files
    Last edited by tobiashu; 09-03-2020 at 04:00 AM.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Copy selected data, paste on sheet2, then create a pdf.

    I changed your setup slightly...Got rid of sloppy Check Boxes...
    Replaced with code to click selected row in Col B...A Tick appears and one can then filter...


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by sintek; 09-03-2020 at 09:48 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    08-10-2020
    Location
    Gothenburg, Sweden
    MS-Off Ver
    2016
    Posts
    21

    Re: Copy selected data, paste on sheet2, then create a pdf.

    Hi Sintek,

    Everything is now working as I want it to, your main code did the trick, a nice way to end the week

    Thanks and enjoy your weekend..

    /Tobias

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Copy selected data, paste on sheet2, then create a pdf.

    Pleasure Tobias...Thanks for rep +

  5. #5
    Registered User
    Join Date
    08-10-2020
    Location
    Gothenburg, Sweden
    MS-Off Ver
    2016
    Posts
    21

    Re: Copy selected data, paste on sheet2, then create a pdf.

    Hi Sintek,

    I´ve actually have one more problem with this one..

    When I put in a project number like 4:88 and then run macro "PickList_Rektangelrundadehörn1_Click2" I get run fault, can you please help me out? It looks like : is the problem..

    Thanks
    Tobias
    Attached Images Attached Images
    Attached Files Attached Files

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Copy selected data, paste on sheet2, then create a pdf.

    That is because you are making use of an illegal character in save path : cannot be used...
    https://www.mtu.edu/umc/services/dig...racters-avoid/

  7. #7
    Registered User
    Join Date
    08-10-2020
    Location
    Gothenburg, Sweden
    MS-Off Ver
    2016
    Posts
    21

    Re: Copy selected data, paste on sheet2, then create a pdf.

    Hi again,

    Thanks, I should know that, removed -> all good.

    Cheers
    Tobias

+ 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] Copy all the data from sheet 1 and paste it below the first blank row of sheet2.
    By Wither125 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2016, 05:54 PM
  2. [SOLVED] Copy selected data from sheet1 to sheet2
    By Rajesh shishodia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-03-2015, 06:20 AM
  3. Copy/Paste Data from Sheet1 to Sheet2
    By h.noor in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-11-2015, 11:39 PM
  4. I need help to copy and paste the data as requested sheet2
    By venkatpvc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-20-2013, 10:36 AM
  5. [SOLVED] Copy data from column A and B Sheet1 and paste into Sheet2
    By rabra in forum Excel General
    Replies: 2
    Last Post: 02-03-2013, 11:39 AM
  6. copy data from selected cells , in selected row and paste it to ms word table ?
    By aaashaaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2010, 03:25 PM
  7. Copy data from textfile, paste and transpose to sheet2
    By m4nd4li4 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2005, 05:06 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