Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default InsertIndent

How can I check if the text in a cell is indented? I tried it with this
code, but it doesn´t work:

if cells(5, 1).InsertIndent = 1 then ...


Many thanks
Bernd


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default InsertIndent

Bernd

Try something like this

Sub test()
If Range("A1").IndentLevel 0 Then
MsgBox "There is an indent of " & Range("A1").IndentLevel
End If
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Bernd Kuegle" wrote in message
y.telekom.at...
How can I check if the text in a cell is indented? I tried it with this
code, but it doesn´t work:

if cells(5, 1).InsertIndent = 1 then ...


Many thanks
Bernd




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"