+ Reply to Thread
Results 1 to 2 of 2

Changing text of Target.Adress using replace in VBA

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    1

    Changing text of Target.Adress using replace in VBA

    Hi All,

    see code:
    Please Login or Register  to view this content.
    Basically, say my range that is selected (or Target.Address) is "$D$46:$E$48, $D$50:$E$50" , and obviously the macro only really runs when there is a change in "E", what i want my macro to do is change what ever is between the $ signs to "G" and i've tried using the replace method, but that doesnt seem to work.

    Could some one please help.

    Thank you

    Claudio

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Changing text of Target.Adress using replace in VBA

    Are you trying to use some sort of regex syntax, "\x36.\x36", if so it will not work in replace.

    I don't think you can change the address of Target.

    Perhaps what you need is

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula to extract text before the first dot in an E-mail adress
    By Rambo4711 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-02-2013, 05:18 AM
  2. Replies: 1
    Last Post: 04-18-2013, 05:34 AM
  3. Replies: 1
    Last Post: 12-28-2012, 07:24 AM
  4. Replies: 3
    Last Post: 01-27-2011, 08:19 PM
  5. Changing target sheet name wihtin a macro
    By Jim G in forum Excel General
    Replies: 2
    Last Post: 01-29-2006, 11:10 PM

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