+ Reply to Thread
Results 1 to 4 of 4

Format Cells based on other cells format

Hybrid View

  1. #1
    Registered User
    Join Date
    09-29-2011
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    29

    Exclamation Format Cells based on other cells format

    I would like to format cells of one worksheet based the format of another worksheets cell.

    I have attached an example with and input and return worksheets (the return was done manually with what the output should look like)

    Any help would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Format Cells based on other cells format

    Here is one approach:
    Sub x()
      
    Dim rFind As Range, r As Range
    
    For Each r In Sheet2.Range("A1", Sheet2.Range("A" & Rows.Count).End(xlUp))
        Set rFind = Sheet1.Columns(1).Find(What:=Val(Left(r, 6)), LookAt:=xlWhole, SearchFormat:=False)
        If Not rFind Is Nothing Then
            r.Interior.ColorIndex = rFind.Offset(, 2).Interior.ColorIndex
        End If
    Next r
         
    End Sub

  3. #3
    Registered User
    Join Date
    09-29-2011
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Format Cells based on other cells format

    I used this a long time ago and forgot to update it! Thanks so much for the help!

    Erin

  4. #4
    Registered User
    Join Date
    09-29-2011
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    29

    SOLVED: Format Cells based on other cells format

    Thanks for the help!

+ 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