Thread: [Solved] VBA Macro code help
View Single Post
 
Old 09-26-2015, 06:36 PM
get4hari get4hari is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Sep 2015
Posts: 6
get4hari is on a distinguished road
Exclamation

Inputs sheet - > Delete the Empty rows & replace heading names " but unfortunately code is not working .

Code:
    Sheets("Inputs").Select
       Dim i As Long, Lastrow As Long
       Lastrow = Range("D" & Rows.Count).End(xlUp).Row
       For i = Lastrow To 1 Step -1
        If Cells(i, "D").Value = "" Then
            Cells(i, "D").EntireRow.Delete
        End If
    Next
    
  
    

    Sheets("Inputs").Select
    Cells.Find(What:="Business Agreement ID", After:=ActiveCell, LookIn:=xlFormulas, _
        LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
        MatchCase:=False, SearchFormat:=False).Activate
    Cells.Replace What:="Business Agreement ID", Replacement:="Invoice Number", LookAt:= _
        xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
        ReplaceFormat:=False
HTML Code:
Kindly look into this on priority
Reply With Quote