+ Reply to Thread
Results 1 to 10 of 10

Add work sheet, find and replace macro help!

  1. #1
    Registered User
    Join Date
    05-06-2014
    Location
    Cali or philly
    MS-Off Ver
    Excel 2003
    Posts
    60

    Add work sheet, find and replace macro help!

    I want to create a macro to add a work sheet and find and replace


    For example

    I have a sheet called Template
    and a sheet called OP_ALC among hundreds of others


    When I click my macro I want to select OP_ALC

    Create a new sheet called OP_ALC_TC

    So just add the _TC for any sheet

    I want OP_ALC_TC to have Template!A1:T3 in there
    Then I want to find and Replace VARIABLE with OP_ALC


    Any Idea how to do this?
    Im still learning how to code and almost have it but no luck

  2. #2
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Add work sheet, find and replace macro help!

    Hi Snaybot. I'd be happy to help if you provided the workbook.
    1. Include a sample workbook with an example of the result you want
    2. Use [CODE] and [FORMULA] wrappers for your VBA code or excel formulas
    3. If your question has been answered, mark the thread as SOLVED and click on the "Add Rep" star to thank whoever helped you.

  3. #3
    Registered User
    Join Date
    05-06-2014
    Location
    Cali or philly
    MS-Off Ver
    Excel 2003
    Posts
    60

    Talking Re: Add work sheet, find and replace macro help!

    I want to Make OP_EXAMPLE_TC


    so copy paste the template and Replace "Variable" With OP_EXAMPLE


    Also play Make all make the Cell Number format to General instead of Text


    Thanks a bunch!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Add work sheet, find and replace macro help!

    Try this:

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Add work sheet, find and replace macro help!

    Is this what you wanted?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-06-2014
    Location
    Cali or philly
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Add work sheet, find and replace macro help!

    No man, I want to create OP_EXAMPLE_TC not TEMPLATE_TC

    I want to copy and paste the template into OP_EXAMPLE_TC
    and then replace the word "variable" with "OP_EXAMPLE" in the forumula

  7. #7
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Add work sheet, find and replace macro help!

    What do you mean "paste the template into OP_EXAMPLE_TC?" Are you just saying you want it named differently, or do you want it pasted over the example data? I can't picture what you're wanting the output to be.

  8. #8
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Add work sheet, find and replace macro help!

    Edited code to change replacement value to inputted sheet name. Run code and put OP_EXAMPLE in the input box.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    05-06-2014
    Location
    Cali or philly
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Add work sheet, find and replace macro help!

    ok For example

    I have SheetX which is a set of data

    I also Have a "Template" Sheet

    When I am in SheetX

    I want to cliick my macro to create a new worksheet called SheetX_TC with Template A1:T3 in it

    And In each individual cell formula in SheetX_TC to change from "Template!...." to "SheetX!..."

    Let me know if im not being Clear

  10. #10
    Registered User
    Join Date
    05-06-2014
    Location
    Cali or philly
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Add work sheet, find and replace macro help!

    Perfect Thanks!

+ 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 and Replace in VBA does not work
    By pitinswiss in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-13-2013, 03:20 PM
  2. [SOLVED] Find and Replace Macro- Within Workbook or Sheet
    By Rhudi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2013, 12:53 PM
  3. Run Time Error '6' Overflow - Macro That Find Text and Copy Range & Replace on Other Sheet
    By asgharhussaini in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2013, 04:34 AM
  4. [SOLVED] Find and Replace Macro not working for sheet Referance in formula
    By Lotrking1010 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-31-2012, 08:15 AM
  5. Find and replace date in a work sheet
    By pohaku in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 11-18-2007, 07:25 PM

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