+ Reply to Thread
Results 1 to 14 of 14

Find & Replace All Sheets Using VBA

Hybrid View

tmontg2 Find & Replace All Sheets... 05-26-2012, 05:58 PM
tmontg2 Re: Find & Replace All Sheets... 05-26-2012, 06:02 PM
Sa DQ Re: Find & Replace All Sheets... 05-27-2012, 07:03 AM
HSV Re: Find & Replace All Sheets... 05-27-2012, 07:45 AM
tmontg2 Re: Find & Replace All Sheets... 05-28-2012, 04:38 AM
HSV Re: Find & Replace All Sheets... 05-28-2012, 05:34 AM
tmontg2 Re: Find & Replace All Sheets... 05-28-2012, 11:49 AM
HSV Re: Find & Replace All Sheets... 05-28-2012, 01:47 PM
tmontg2 Re: Find & Replace All Sheets... 05-28-2012, 02:50 PM
HSV Re: Find & Replace All Sheets... 05-28-2012, 03:26 PM
tmontg2 Re: Find & Replace All Sheets... 05-28-2012, 03:36 PM
HSV Re: Find & Replace All Sheets... 05-28-2012, 03:44 PM
tmontg2 Re: Find & Replace All Sheets... 05-28-2012, 03:58 PM
HSV Re: Find & Replace All Sheets... 05-28-2012, 04:06 PM
  1. #1
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    868

    Re: Find & Replace All Sheets Using VBA

    Replace by 'xlwhole' 'xlpart'
    Harry.

  2. #2
    Registered User
    Join Date
    05-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Find & Replace All Sheets Using VBA

    Quote Originally Posted by HSV View Post
    Replace by 'xlwhole' 'xlpart'
    THANK YOU!!!!!!!!!!!!

    I could give you hug!

    -Tierra

  3. #3
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    868

    Re: Find & Replace All Sheets Using VBA

    You’re welcome,

    Make sure columns B not blank cells in it.
    Otherwise columns A will be a blank cell to.
    Change the code to overcome.
    Sub hsv()
    Dim sh As Worksheet, i As Long
     For Each sh In ThisWorkbook.Worksheets
       For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row
        If sh.Cells(i, 2) > 0 Then
         sh.Cells.Replace sh.Cells(i, 1), sh.Cells(i, 2), xlPart, xlByRows, , False, False, False
        End If
       Next i
     Next sh
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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