+ Reply to Thread
Results 1 to 3 of 3

VBA: Post Excel Table Contents into MS Office Outlook 2010 Message

  1. #1
    Registered User
    Join Date
    02-20-2018
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    1

    VBA: Post Excel Table Contents into MS Office Outlook 2010 Message

    Hi all! Hope you can help me with the below. Thanks a mill!

    I'm looking to post contents within a defined set of cells in table format (e.g. B2:E20), directly into a MS Office Outlook 2010 message (stand-alone app, not web-based) i.e. I click a button in my spreadsheet and it automatically opens a MS email window with the table and its related contents within it.

    The issue I have is that while columns are fixed, the rows of the table are variable i.e. sometimes I may only have data for 2 line items, while other times I may have 20 line items.

    Is there a way for code to detect the number of line items I have and transpose the table to outlook message window accordingly?

    Thank you in advance for the help, I just learned VBA a month ago and am not well versed in coding for such a complex request.

    Any help would be greatly appreciated!

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: VBA: Post Excel Table Contents into MS Office Outlook 2010 Message

    You'll find plenty of examples in Ron de Bruin's site.
    https://www.rondebruin.nl/win/section1.htm

    If you are unable to adopt his code to your need. Upload sample workbook with where you are having difficulty.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: VBA: Post Excel Table Contents into MS Office Outlook 2010 Message

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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: 12-23-2017, 09:42 AM
  2. send data or post a message from Excel 2010 to twitter, tumblr or similar
    By JJGF in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-18-2016, 02:16 AM
  3. Outlook issues with xls in office 2010
    By wally in forum Excel General
    Replies: 1
    Last Post: 06-09-2015, 07:05 PM
  4. In Office 2010 I need the popup to show cell contents
    By araczek in forum Excel General
    Replies: 2
    Last Post: 10-15-2014, 02:19 PM
  5. Replies: 10
    Last Post: 09-07-2014, 11:54 PM
  6. Need to Copy Outlook 2010 Mail message to Excel 2010
    By pradeepdeepu_001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2012, 11:35 PM
  7. MS OFFICE 2010 Generate Macro/VBA from Excel Workbook to Outlook Calendar
    By nermal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-06-2012, 05:20 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