+ Reply to Thread
Results 1 to 17 of 17

Copy Cells & Paste into active window

  1. #1
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Copy Cells & Paste into active window

    1st Issue: I have a sheet, that when I click on the "TSA Request" button it launches a lync window to a group in my office. What I want it to do is when I click on the button, it copies cells A1:I12, pop open the window from Lync & paste the copied info into that window. I tried using the lync macros I found on the internet but we don't have access to the SDK files so this is the only solution that I have a possible fix to.

    2nd Issue: I would like when I click on the "Manual Move Request" button, I would like for it to look at Cell F17 and find that name (Sheet(Employees).Range "C + B" to match the name and put the email for that person from cell in column U.

    I have attached my workbook so you can try it for yourself. Thank you for any help in advanced.
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Copy Cells & Paste into active window

    None of the names in the F17 match anything in Employees, and what is Lync?
    All I get is a mail message with the data from that sheet.
    I suggest a little more explicit explanation and don't make others guess what you want and make incorrect assumptions.
    What may be a clear matter to you is not to others.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: Copy Cells & Paste into active window

    Well Lync is a Microsoft application that was replaced with Skype for Business! All of the names are on the Employees sheet (Look in columns B & C at rows 995-1001! Correct it puts the data correctly - however I want it to look up the names from F17 on sheet "Employees" & then pull their email and put it in the CC in the macro.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Copy Cells & Paste into active window

    I see Jeanrenaud Bosirond but where should the email address be found? There is no relationship whatsoever in the Empolyee sheet that could point out what his /her email address is

  5. #5
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: Copy Cells & Paste into active window

    Their email address are in Column U on the Employee Sheet

  6. #6
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: Copy Cells & Paste into active window

    Basically it would see who's name is on sheet "TSA Request" in cell F17 and then find that employee from sheet "Employees" when you put the names together from C + B and then looks in column U and gets their email to put in the CC line of the email macro.

    Example: F17= "Ray Webber", it would look for Ray on Sheet(Employees) in the C column & then Webber in the B column and return the results of rwebber@****.com and insert it in the CC line on the email!

  7. #7
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Copy Cells & Paste into active window

    Yes by the other names are not found

  8. #8
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: Copy Cells & Paste into active window

    Correct - this is just a sample - I will add the correct names at a later date - I just need it to do as I am requesting

  9. #9
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Copy Cells & Paste into active window

    Okay, I added a function to find the corresponding email address based upon the name in F17
    It will return empty if the name is not found, I also took into account the fact that there can be more then one person named Jones
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: Copy Cells & Paste into active window

    Perfect - Thank you so much for your help with this!

  11. #11
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Copy Cells & Paste into active window

    You're welcome

  12. #12
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: Copy Cells & Paste into active window

    So I ran into a problem - there are 3 names that it is not finding and putting in the CC of the email. Dialo Lee, Joel Gonzalez & Micheal Harrison. Any ideas of why its doing 4 name but not the other 3?

  13. #13
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Copy Cells & Paste into active window

    Sorry my mistake

    change the code in .FindNext

    Please Login or Register  to view this content.

  14. #14
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: Copy Cells & Paste into active window

    Perfect - Thank you! Now about the 1st issue - are you comfortable with copy the Range from A1:I12 to copy and it opens an IM in Lync then paste the info? By what I have read on the internet we need to call a .dll file and since I dont have access to those files, can we do a coy and paste in active window after the hyperlink to open a new IM to a group?

  15. #15
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Copy Cells & Paste into active window

    What DLL?
    If it's a DLL you can just download it and add it as reference to the vba references.
    I'm sure the site that supports LYNC (whatever it is) has tips and explanations for this.

  16. #16
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: Copy Cells & Paste into active window

    Yeah I looked and didnt see anything - I am trying to make this simple as possible as it will be given to every agent (>300) people to use and rather have 1 excel sheet rather than a folder of files to call.

  17. #17

+ 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. Copy and paste active cell and include adjacent cells
    By lukasd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2017, 03:17 PM
  2. Replies: 11
    Last Post: 03-03-2016, 12:26 AM
  3. Macro to copy and paste cells up till the last active row of cells
    By blueaurora in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-07-2015, 05:08 AM
  4. Replies: 4
    Last Post: 07-03-2015, 04:27 AM
  5. [SOLVED] Copy/paste range of cells to first empty row of active list in another worksheet
    By wildecat666 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-06-2013, 03:45 PM
  6. Copy active row and paste to specific cells on different sheet
    By XxCMoneyxX in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2013, 03:03 PM
  7. Copy/paste select cells in active row for use in email body
    By rkovsonic in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-22-2013, 05:41 PM

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