+ Reply to Thread
Results 1 to 5 of 5

Macro to add defined text to the end of multiple defined columns of data

  1. #1
    Registered User
    Join Date
    12-24-2008
    Location
    London, England
    Posts
    11

    Macro to add defined text to the end of multiple defined columns of data

    Hello everyone,

    So seems as soon as you solve one issue another pops up, this is different to my previous solved issue so I have started a different thread, hopefully this is OK.

    So I have a sheet that pulls data from another source, and enters it into columns. The amount of data can vary however the number and locations of the columns will always be a known factor. What I would like to do is have a macro that will run and add two lines of data at the end of each of a defined column in the first two blank cells. So for example:

    Please Login or Register  to view this content.
    Magic button push!

    Please Login or Register  to view this content.
    The data that needs to be entered at the end of each column is always going to be the same and so can be hard coded just like the columns of data that are always know.

    Hopefully this make sense but please do ask if I need to clear anything up. Thank you in advance once again for anyone able to help.
    Last edited by spikedog; 06-28-2012 at 04:51 AM.

  2. #2
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Macro to add defined text to the end of multiple defined columns of data

    Copy code to a standard module.
    Change: Const sColumns = "A,B,C,G" as needed
    (these are the letter for the columns)
    Run: Add2BottomOfColumns

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-24-2008
    Location
    London, England
    Posts
    11

    Re: Macro to add defined text to the end of multiple defined columns of data

    Outstanding, that works like a charm. Thank you so much Steven.

    This forum really should have a thanks button or some way of giving extra kudos to people that help!

  4. #4
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Macro to add defined text to the end of multiple defined columns of data

    This forum really should have a thanks button or some way of giving extra kudos to people that help!
    It is the star like icon at the bottom left of the message.

  5. #5
    Registered User
    Join Date
    12-24-2008
    Location
    London, England
    Posts
    11

    Re: Macro to add defined text to the end of multiple defined columns of data

    Ah thanks for the heads up, rep going your way!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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