+ Reply to Thread
Results 1 to 4 of 4

Macro to change text in a column

  1. #1
    Registered User
    Join Date
    12-24-2008
    Location
    Boerne, Texas
    Posts
    10

    Macro to change text in a column

    Can I use a macro to change text in a cell?
    As an example, I have this list of names in a column. I'd like every other name to have a semicolon instead of a comma after the name.

    My list has commas now
    Tommy,
    Joe,
    Warren.
    Billy,
    Bob,
    George,

    And I want it to look like this.
    Tommy,
    Joe;
    Warren.
    Billy;
    Bob,
    George;

    Since I'm using macros on this page, I'd like to use a macro to do this, but any ideas would help.

    Thanks
    Last edited by JoeB11; 01-15-2009 at 05:32 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    This will change all the even rows. If you want it to be the odd rows, then change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    12-24-2008
    Location
    Boerne, Texas
    Posts
    10
    Whoops, I should have said that there are other commas in the cell. It's only the end comma that I'm trying to change.

    A cell might say Tom, Joe, Sam,

    And I'm actually wanting the semicolon every 300 rows
    Last edited by JoeB11; 01-14-2009 at 10:50 PM.

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Try this
    Please Login or Register  to view this content.

    If that doesn't do it, then attach an example file and show what items should be changed, and what they should be changed to....

    rylo

+ 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