Indenting 2nd line of word wrap

Coach3131

Board Regular
Joined
Nov 23, 2007
Messages
242
How can I set the 2nd line of a word wrapped merge cell to indent? I know the manual way, by using alt enter for each line, but is there a way to do it with VBA script, etc.?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try this ~

ActiveCell.FormulaR1C1 = "Now try this." & Chr(10) & "It works."


The Chr(10) creates the line wrap. An indent is different and will not do what I think you require.

Cheers
 
Upvote 0
What makes this automatic? If I am going to do something manual, there is already a way to do it. I need something that will add an indent to the 2nd (or 3rd/4th/etc.) lines.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,351
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top