Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 04-06-2021, 12:08 AM
Purfleet Purfleet is offline Indent when ">" is typed in Column A Windows 10 Indent when ">" is typed in Column A Office 2019
Expert
 
Join Date: Jun 2020
Location: Essex
Posts: 345
Purfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to behold
Default

I would run an update macro if you have existing data to indent, just the range then run (in a normal module). Obviously this can be updated/improved

Code:
Sub IndentArrows()

    Dim r As Range
    Dim c As Range
    
    Set r = Selection
    
    For Each c In r
        If Left(c.Value, 1) = ">" And c.IndentLevel = 0 Then c.InsertIndent 1
    Next c

End Sub
Attached Files
File Type: xlsm Indent_Purfleet3.xlsm (18.0 KB, 7 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change the Column reference 'S' to a range ??? Sheets("Customer").Range("S" & ActiveCell.Row) = Date trevorc Excel Programming 1 03-04-2021 02:39 PM
Indent when ">" is typed in Column A Formula to format "I" column based on if "F" column row is not blank ravl13 Excel 3 08-22-2017 12:26 PM
Need help with conditional formatting & returning "Pass" / "Fail Results" in a Column N mikey386 Excel 2 12-11-2014 01:14 PM
the character "v" when typed acts like ctrl-v. jim redfield Word 1 09-22-2012 05:19 AM
Why the "decrease indent" doesn't affect the selected text to move???? Jamal NUMAN Word 0 07-12-2011 04:10 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft