+ Reply to Thread
Results 1 to 4 of 4

Find and Replace All Values In Worksheet

  1. #1
    Forum Contributor
    Join Date
    06-15-2009
    Location
    Ontario, canada
    MS-Off Ver
    Office 365
    Posts
    371

    Find and Replace All Values In Worksheet

    I wish to replace all the instances of a value with another throughout my entire worksheet.

    Please Login or Register  to view this content.
    I though this would do it, thinking it would consider all the cells of the worksheet, but I think it finds the first, replaces it, then stops. I'm assuming the code is incomplete for what I need to do, but I'm unsure how.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Find and Replace All Values In Worksheet

    No, the code replaces them all, but you only increment the counter once since no loop is required.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    06-15-2009
    Location
    Ontario, canada
    MS-Off Ver
    Office 365
    Posts
    371

    Re: Find and Replace All Values In Worksheet

    Ohhh. I see. OK! So, if i want to maintain a counter, I will have to use a loop ... fair assumption?

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Find and Replace All Values In Worksheet

    Yes, that's correct.

+ 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. Replies: 1
    Last Post: 02-27-2018, 11:22 AM
  2. Macro to Find/Replace from one worksheet to another worksheet
    By kingsdime29x in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2015, 12:38 PM
  3. Import worksheet and remove old worksheet references with find and replace
    By shawnvon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2015, 12:25 PM
  4. Macro to find all specific values in column and replace adjacent cell values
    By dblock02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2013, 06:03 AM
  5. Find replace worksheet only
    By tone640 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-13-2011, 04:39 AM
  6. Find and Replace on every worksheet
    By oldchippy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-20-2008, 04:31 AM
  7. Replies: 3
    Last Post: 06-11-2005, 09:05 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