+ Reply to Thread
Results 1 to 11 of 11

Choose particular values from a column using dialogue box and copy contents to email?

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    Chennai,India
    MS-Off Ver
    Excel 365
    Posts
    38

    Unhappy Choose particular values from a column using dialogue box and copy contents to email?

    Hello,

    I would like to select certain values from a column (find the column using dynamic search) and be able to select only the required values and paste in email.

    Below are the steps i will be processing

    1. Use a dialogue box to choose required values from a particular column
    2. Copy only the required rows and columns based on the selection
    3. Paste the copied data to outlook email
    4. Extract "To" and "Cc" from the selected data.

    Any help on this regard would be highly appreciated!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,911

    Re: Choose particular values from a column using dialogue box and copy contents to email?

    Could you attach a sample file so we can see what your data looks like?
    Also need some more info about the search criteria. Is it one value or multiple values for the criteria?

    BSB

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    Chennai,India
    MS-Off Ver
    Excel 365
    Posts
    38

    Re: Choose particular values from a column using dialogue box and copy contents to email?

    Sample.xlsm

    Here is the scenario im working with

    On the search criteria, i am working with multiple values from the same column.
    So, if my column has 15 values, i need a dropdown of the unique values for me to choose which ones need to go inside the body of the email.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,911

    Re: Choose particular values from a column using dialogue box and copy contents to email?

    And which columns from the data need to go in the email?

    BSB

  5. #5
    Registered User
    Join Date
    11-14-2012
    Location
    Chennai,India
    MS-Off Ver
    Excel 365
    Posts
    38

    Re: Choose particular values from a column using dialogue box and copy contents to email?

    Columns A through H in table format. It should also contain few texts like: "Hello Project Owner, please find the below table and work on it"..

    Pls keep in mind that the Email coulmns (E,F) need to be dynamic. Meaning to say, i need to find the column by its header and not by column E or F since there might be adds or deletes in columns during maintenance of the sheets.
    Last edited by karthik013; 02-03-2025 at 12:17 PM.

  6. #6
    Registered User
    Join Date
    11-14-2012
    Location
    Chennai,India
    MS-Off Ver
    Excel 365
    Posts
    38

    Re: Choose particular values from a column using dialogue box and copy contents to email?

    BSB,

    Buddy any luck with the code? Sorry, i am banking on the solution to complete my task.

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,277

    Re: Choose particular values from a column using dialogue box and copy contents to email?

    To get things started.
    Attached Files Attached Files
    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.

  8. #8
    Registered User
    Join Date
    11-14-2012
    Location
    Chennai,India
    MS-Off Ver
    Excel 365
    Posts
    38

    Re: Choose particular values from a column using dialogue box and copy contents to email?

    Thanks a lot for pitching in bakerman2.

    Can you pls copy and paste the code in the window here? I am unable to view the code due to security settings at my work laptop. I tried copying the code, but it shows an error to run macros. Sorry for the trouble and thanks a lot for the help. Appreciate it!

  9. #9
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,277

    Re: Choose particular values from a column using dialogue box and copy contents to email?

    Create a userform with a LisBox and a CommandButton in it.

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    11-14-2012
    Location
    Chennai,India
    MS-Off Ver
    Excel 365
    Posts
    38

    Re: Choose particular values from a column using dialogue box and copy contents to email?

    Hey thanks a lot for the response. I am encountering some issues as below.

    1. The project name chosen gets pasted in Output sheet, K2, any reason why?
    2. I am unable to copy the range. It throws an error stating, "The extract range has a missing or invalid field name"

    Because of this error, i am unable to run the complete macro.

  11. #11
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,277

    Re: Choose particular values from a column using dialogue box and copy contents to email?

    1. K1:K2 is the Criteria range for the AdvancedFilter to work properly.
    2. Make sure the Columnheaders on Output sheet are exactly the same as in Input sheet. (best is to copy them from 1 sheet to the other)
    This is how it should look like.
    Attachment 888602

+ 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 an Outlook Email Contents and Paste in a New Email Keeping Format
    By lougs7 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-14-2020, 08:53 PM
  2. Copy Cell Contents into outlook email
    By ahalliwell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2018, 01:43 PM
  3. Copy attachment contents into body of email !
    By V.Cell in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-19-2016, 07:47 AM
  4. Copy email contents to new email whilst saving attachment.
    By X82 in forum Outlook Programming / VBA / Macros
    Replies: 25
    Last Post: 08-18-2015, 03:16 PM
  5. [SOLVED] VBA Button to have use choose a file & copy the contents
    By DKolev in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-12-2013, 01:30 PM
  6. Dialogue box to search date range of table column, copy relevant rows to report sheet
    By Tim Newton in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-26-2013, 03:10 AM
  7. copy a cell's contents into find dialogue box
    By tommeyer in forum Excel General
    Replies: 1
    Last Post: 01-18-2005, 03:40 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