+ Reply to Thread
Results 1 to 4 of 4

Macro to generate a reddit table

  1. #1
    Forum Contributor
    Join Date
    03-29-2013
    Location
    US
    MS-Off Ver
    Office 2016
    Posts
    109

    Macro to generate a reddit table

    I often want to post some data that I keep in Excel to reddit in table form. Reddit uses Markdown formatting for posts.

    A Markdown table is formatted with pipes between cells and needs two spaces at the end of each line. For example:

    Please Login or Register  to view this content.
    I'd like to be able to highlight an area of my Excel worksheet and run a macro that would generate the necessary Markdown for reddit. Can anyone help?

    (Note: I'm running Excel 2003)

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Macro to generate a reddit table

    Hi,

    Here's a suggestion in the attached file.

    Select the range and run the macro.
    You can either have the string output in the immediate window or the VBA editor or directly sent to the clipboard. If you keep the clipboard option, you will simply have to paste in Reddit.
    Attached Files Attached Files
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Forum Contributor
    Join Date
    03-29-2013
    Location
    US
    MS-Off Ver
    Office 2016
    Posts
    109

    Re: Macro to generate a reddit table

    I'm just getting back around to this. This was very helpful. Thanks.

  4. #4
    Forum Contributor
    Join Date
    03-29-2013
    Location
    US
    MS-Off Ver
    Office 2016
    Posts
    109

    Re: Macro to generate a reddit table

    Re-exploring this a bit...

    How could I select only visible cells in the selected range? If I hide rows or columns, or apply a filter, how can I have the hidden data excluded?

+ 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. Help with setting up custom Reddit alerts
    By Tarian in forum Excel General
    Replies: 2
    Last Post: 12-18-2016, 02:23 PM
  2. Macro to generate a list from a table
    By Uzzgee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-19-2015, 05:15 PM
  3. [SOLVED] Macro to generate Pivot table - Error
    By andrew93hughes in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-19-2013, 11:05 AM
  4. [SOLVED] macro needed to generate pivot table with exact format
    By turbo600hp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2013, 05:17 AM
  5. Macro to generate a line graph with coloured pointers and lables based on table
    By B2009 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 10-08-2009, 07:58 AM
  6. macro to generate sorted table from unsorted list?
    By JGCA in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-14-2009, 11:36 AM
  7. Using Macro to link sql table to generate Pivot Table
    By Benard in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2008, 06:02 AM

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