Results 1 to 5 of 5

Code to check and match not working

Threaded View

  1. #1
    Registered User
    Join Date
    03-18-2011
    Location
    Dayton, ME, USA
    MS-Off Ver
    Excel 2004 for MAC 11.5.4
    Posts
    77

    Code to check and match not working

    Hi

    I have the following code that is supposed to check cell AC for "YES" , if that is correct then put data into AH:AT from the row immediately above it.

    What am I doing wrong?

    Thanks
    Jon

    Sub fillgap()
    With ActiveSheet
    LR = .Range("A" & .Rows.Count).End(xlUp).Row
    If Range("AC" & Rw) = ("YES") Then
    Range("AH:AT" & Rw) = Range("AH:AT" & Rw - 1)
    End If
    End With
    
    End Sub
    Last edited by endoskeleton; 05-25-2011 at 04:00 PM.

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