+ Reply to Thread
Results 1 to 2 of 2

Replace Placeholder Text

  1. #1
    Registered User
    Join Date
    10-30-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    2

    Replace Placeholder Text

    I have a spreadsheet that I receive from my customer containing business requirements. One such requirement is a string of text that sometimes contains variable(s) represented by placeholders. I need to copy this string into another worksheet and replace the placeholders with my internal variables. This will allow for a straight comparison during QA.
    Worksheet 1
    Cell A1
    Lorem ipsum [!--$VARBL1_TXT$--] sit amet [!--$VARBL2_TXT$--]

    Worksheet 2
    Cell A1
    Lorem ipsum %%Variable1%% sit amet %%Varaiable2%%
    I am currently copying W1/A1 into W2/A1 using this formula: =IF('W1'!A1="","",'W1"!A1)

    I do have a table that I can use for a VLOOKUP but the logic to return both the W1/A1 with replaced values has me baffled. I have written this macro but it doesn't work on the cell value returned from the formula in W2/A1:

    Please Login or Register  to view this content.
    What is the best way to manage this? I considered doing nested substitutes but there are apx 30 variables. Thanks in advance!
    Last edited by Fotis1991; 10-30-2013 at 10:07 AM.

  2. #2
    Registered User
    Join Date
    10-30-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Replace Placeholder Text

    I may be approaching this problem completely wrong so any help is greatly appreciated!!!

+ 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. find in excel replace in word: find/replace text in text boxes and headers
    By dean.rogers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2012, 12:40 PM
  2. Placeholder / formula help
    By mogomoss in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 10-23-2011, 07:44 PM
  3. Graphic shows placeholder only
    By NMullis in forum Excel General
    Replies: 4
    Last Post: 10-13-2008, 05:05 PM
  4. delete row of text with 3 macros & [placeholder]
    By Janis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-18-2006, 03:30 PM
  5. zero placeholder
    By cwilken in forum Excel General
    Replies: 2
    Last Post: 05-19-2005, 02:48 AM

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