View Poll Results: Is possible to do it?

Voters
1. This poll is closed
  • YES

    1 100.00%
  • NO

    0 0%
+ Reply to Thread
Results 1 to 2 of 2

Find and Replace - quantum of replaces

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    Teplice
    MS-Off Ver
    2010
    Posts
    71

    Question Find and Replace - quantum of replaces

    Hi All,

    till now, i am using this macro

    Please Login or Register  to view this content.
    i have these replaces very, very much after a time and it is very confusing, because i dont have very good control over same words etc.
    You know, the replaces needs some logic so i have made "categories" of replaces. But now i d like to move on and question you if there is some better solution, in which i will be more able to read the code and know where i have to put some new replace strings.


    I think the best choice should be to take the find and replace strings in sheet named "replaces" for example and the routine will go row by row until empty row and in A column will be search strings, in B column replace strings. After null row, i would be happy if the string will start also at C (find string) and D column (replace string) etc. This last thing is about more categories for search... i like to have these separated by my logic. So after the routine will not find value in A, x or C, x or D, x etc, than script ends.

    I added the example sheet.findReplace.xlsx

    I will be very happy, if the script will do the routine on SELECTION and with values as above (i just copied it bellow)
    Please Login or Register  to view this content.
    -----------------------------
    Also i have one question and it is if there will be some limitation. Because i have found out, that previous macro had limitations so i had to do more procedures (modules)
    Last edited by JBeaucaire; 02-08-2013 at 07:13 PM. Reason: Added code tags, as per forum rules. Don't forget!

  2. #2
    Registered User
    Join Date
    11-27-2012
    Location
    Teplice
    MS-Off Ver
    2010
    Posts
    71

    Re: Find and Replace - quantum of replaces

    OK, after all, i have found out programator near to me. This forum had a lag to me about doing this thing.

    So i am putting here the code

    It renames all selected by the values in sheet "rename", where in A column is what to find and B column is with what to replace. It also continues with CD columns etc until finding null column

    One thing you can change and it is if you want to find the strings case sensitive. Now is not.

    The last code is just sorting the A column after rename

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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