Forum Discussion
alphakeverest
Mar 30, 2021Copper Contributor
Indent in Multi-Level List
Hi! Can you tell me how to record intend increase and decrease in a multilevel list through Macros?
Stefan_Blom
Apr 01, 2021MVP
You can use the following commands:
Selection.Range.ListFormat.ListIndent 'indents/demotes the level in the selection
Selection.Range.ListFormat.ListOutdent 'outdents/promotes the level in the selection
alphakeverest
Apr 01, 2021Copper Contributor
Stefan_Blom
Thank you so much. It worked
Thank you so much. It worked
- Stefan_BlomApr 02, 2021MVP
I'm glad I could help.
Note that the comments I added (starting with single quotation marks) are not part of the code. They are not supposed to wrap, but I see that they do here (when I tried to format the code samples as code samples, the problem became worse). You can just delete the 'indents/demotes the level in the selection and 'outdents/promotes the level in the selection parts.
- alphakeverestApr 05, 2021Copper ContributorStefan_Blom
Yes I already knew about how to comment in visual basic so I just copied only the part prior to this single quotation mark.
Once again, thanks a bunch.