+ Reply to Thread
Results 1 to 8 of 8

Automatically copy and past and add to the record by one click

  1. #1
    Registered User
    Join Date
    05-27-2014
    Posts
    4

    Question Automatically copy and past and add to the record by one click

    Hi All masters

    This is Alex, i don't have much experience in VBA, try to seek your advice with following question:
    I am developing a charge rate calculator which allow me to select job, level and input the base pay rate, it will calculate the charge rate to client. What I need is once every thing is done, by clicking the Confirm button (form control) in Charge Rate calculator sheet, it will automatically copy and paste the job title, all charge rate into the Summary sheet as in the attached. And the user select another job title, and click confirm again, it will add to the next record in the summary sheet. It will keep adding until the "clear button" is click, which will clear all record in the summary sheet.

    Would you know how to do it?

    thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,755

    Re: Automatically copy and past and add to the record by one click

    See attached for the code necessary to make the buttons work. I presumed that you had the issue of the combo boxes under control and the development of the billing rates.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    05-27-2014
    Posts
    4

    Re: Automatically copy and past and add to the record by one click

    Thanks a lot Alan. Yes, I have hidden other list of the combo box. Could you help me a further ?- say if the job title is already pasted, it will not pasted to the summary, i,e, no duplication?

    thanks in advance,

    ALEX

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,755

    Re: Automatically copy and past and add to the record by one click

    Alex;
    Change the code behind the confirm button to read:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-27-2014
    Posts
    4

    Re: Automatically copy and past and add to the record by one click

    Thanks for the prompt response. The code works fine expect for I would like to copy and paste special the value of the selected cells. how can i change the codes?

    Thank you

    Alex

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,755

    Re: Automatically copy and past and add to the record by one click

    Updated the code for you. I changed it slightly as I was getting a compile error on the vlookup line.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-27-2014
    Posts
    4

    Re: Automatically copy and past and add to the record by one click

    Thanks Alan, it all works fine now, very appreciated.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,755

    Re: Automatically copy and past and add to the record by one click

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replies: 1
    Last Post: 05-27-2014, 04:17 AM
  2. click to run, print current page then copy and past cells in to next avalable space.
    By ryannoble in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2013, 05:27 PM
  3. Replies: 2
    Last Post: 05-30-2012, 05:02 PM
  4. To see Individual Record in one click
    By 12.kunal@gmail.com in forum Excel General
    Replies: 3
    Last Post: 01-09-2012, 08:00 AM
  5. Record hh:mm:ss on click of cell
    By Mrbrently in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-22-2005, 01:07 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