+ Reply to Thread
Results 1 to 7 of 7

Search and replace in multiple columns

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Search and replace in multiple columns

    Hello
    What I need to do is replace a bullet symbol in multiple columns with text from row 2 of that column (Bullets in column c get replaced with text from c2)and then re-format that column to Arial 10 pt font.
    I can do it with this macro one column at a time but would like to do it all in one step. If possible I would also like to be able to loop though all worksheets (approx 19) and do the same on each sheet.
    Please Login or Register  to view this content.
    I hope this is clear enough and thanks in advance for any help

    Cheers

    Alan
    Last edited by arlu1201; 03-26-2012 at 03:30 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Search and replace in multiple columns

    Hi Alan,

    Welcome to the forum.

    Since you are new to the forum, i have put code tags for you. In future, please put your code within code tags. It makes the code easier to read and people will help you faster.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    03-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Search and replace in multiple columns

    Thank you Arlette
    I will do that in future posts

    Alan

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Search and replace in multiple columns

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    03-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Search and replace in multiple columns

    Hello Jbeaucaire
    Thanks for the code. The problem I have is that in column G bullet symbols are replaced with text from G2, bullets in Column H are replaced with text for H2 and so on
    Your sample code will replace all bullets with text from G2

    Cheers

    Alan

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Search and replace in multiple columns

    More like this then?
    Please Login or Register  to view this content.

    With your next change/addition, make a guess at some code tweaks and show me what you tried if you can't get it working.

  7. #7
    Registered User
    Join Date
    03-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Search and replace in multiple columns

    Many thanks for the code. It did the job perfectly

    Cheers

    Alan

+ 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