+ Reply to Thread
Results 1 to 6 of 6

if cell has indent, do x

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    if cell has indent, do x

    Can someone show me different ways I can write a code like this? If cell is indented right, do this? Is there also a way to do this without vba?

  2. #2
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Canada Eh
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: if cell has indent, do x

    I quickly made the following:
    Please Login or Register  to view this content.
    Adapt it how you need to.
    Click the * to give Rep to a post you like.

  3. #3
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: if cell has indent, do x

    Actually, I think I figured it out. I'm a genius!! Any suggestions for improving this code? Different ways to approach? Thanks.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: if cell has indent, do x

    How would I modify that code, to loop through all cells in a range?

  5. #5
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: if cell has indent, do x

    I tried this but it didn't work. Why?

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Canada Eh
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: if cell has indent, do x

    I'm not sure why that didn't work but the following does:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Can you use a hanging indent in an Excel cell?
    By DBTI in forum Excel General
    Replies: 3
    Last Post: 01-21-2020, 12:31 PM
  2. How wrap text in a cell is indent?
    By kent97 in forum Excel General
    Replies: 3
    Last Post: 02-26-2015, 11:03 AM
  3. [SOLVED] Indent in relation to numeric cell value
    By jason.hampton in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-08-2013, 02:46 PM
  4. Indent move cell, 2 indent move 2 cells etc
    By jomuir in forum Excel General
    Replies: 3
    Last Post: 05-14-2012, 11:56 AM
  5. How can I remove an indent within a cell?
    By DB--less than excel expert in forum Excel General
    Replies: 5
    Last Post: 02-17-2006, 04:20 PM

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