+ Reply to Thread
Results 1 to 21 of 21

find/replace macro?

Hybrid View

  1. #1
    Registered User
    Join Date
    11-02-2010
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: find/replace macro?

    Thank you guys,

    Richard, your solution would not work simplely because the tab containing the words to be replaced is a tab that will be uploaded into a system daily and has to be the same formate always. The problem I am having is that the description column for that tab contains more than 30 characters and the system it is going into can only have 30 max for a discription. I've used the Trim function to get rid of excess spaces, but need to go shorter. And the discriptions are important enough to were I can just remove the last group of characters to make fit. So I need to find words like Credit and replace with cr and Debit and replace with dr... etc.

    Hope this helps

    JP

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: find/replace macro?

    Hi,

    I see you've ended up with an answer so this is somewhat academic but I see no reason why the technique I described wouldn't have worked.If length of string was some sort of issue then a '*' in the Find would presumably have worked.

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-07-2010
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: find/replace macro?

    I have tried your code JB, but it comes up with a 400 error? I am new to VB and coding, so have absolutely no idea what is going wrong.

    Ive attached what Ive done
    Attached Files Attached Files

+ 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