Closed Thread
Results 1 to 2 of 2

macro to change all worksheets

  1. #1
    Registered User
    Join Date
    02-08-2007
    Posts
    33

    macro to change all worksheets

    hi,
    i have a simple macro to do find and replace but only on the sheet that i open.
    may i know how to make this macro to change all sheets if found the same string in the workbook?

    sub macro()
    Cells.Replace What:="C:\xxx\xxx\xxx\", Replacement:="C:\yyy\yyy\yyy\" _
    , LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat _
    :=False, ReplaceFormat:=False
    end sub

    thanks

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: macro to change all worksheets

    Please take a couple of minutes and read ALL the Forum Rules

    You have previosly been asked to obey forum rules

    Thread closed
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

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