Closed Thread
Results 1 to 2 of 2

Find & Replace Stop In Current Tab - Not Go To Next One

  1. #1
    Forum Contributor
    Join Date
    05-20-2008
    Location
    Virginia
    MS-Off Ver
    2003
    Posts
    129

    Question Find & Replace Stop In Current Tab - Not Go To Next One

    All,

    My find and replace code is going to all the tabs in my workbook, but I want it to stop in my current spreadsheet I am on. Here is my code:

    'Open up charts workbook.
    Workbooks.Open ("E:\Reports\Charts\030.xls")

    'Goes to last tab.
    Worksheets(Worksheets.Count).Activate

    'Open the find and replace dialog box in the charts worksheet, so you can change the labor information.
    Application.Dialogs(xlDialogFormulaReplace).Show

    'Save charts spreadsheet.
    ActiveWorkbook.Save

    How do I make it only do the current tab I am in? I have it go to to the last tab to update it, but it wants to update them all!! Please help me- SEOT

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Please read the Forum Rules and then start a new thread with your code wrapped in Code Tags.

    Thanks.

Closed 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