View Single Post
 
Old 02-19-2020, 09:03 PM
Logit Logit is offline Windows 10 Office 2007
Expert
 
Join Date: Jan 2017
Posts: 533
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

.
This macro will do what you are seeking :

Code:
Option Explicit

Sub IndentB()
Dim i As Range

For Each i In Sheets("Sheet1").Range("E4:E15")
    If i.Value > 0 Then
        i.Offset(0, -3).InsertIndent 2 ' Offset selection from column E
    End If
Next i

End Sub
Attached Files
File Type: xlsm Indent Cell Text Based On Other Cell Value.xlsm (15.3 KB, 9 views)
Reply With Quote