#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 218
Default IndentLevel

Yes. The code as you have written it works for me
(corrected for wordwrap of course) when pasted to the
ThisWorkbook code module.

Regards,
Greg

-----Original Message-----
To save copying the code into numerous other worksheets

within the same
workbook is it possible to do something like the

following ?

Private Sub Workbook_SheetChange(ByVal Sh As Object,

ByVal Target As
Range)

If Not Intersect(Target, Columns("A")) Is Nothing Then
Target.Offset(, 1).IndentLevel = Target.Value
End If

End Sub


Regards
Peter


---
Message posted from http://www.ExcelForum.com/

.

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 08:52 AM.

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

About Us

"It's about Microsoft Excel"