ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Simple VB Script needed (https://www.excelbanter.com/excel-programming/289975-simple-vbulletin-script-needed.html)

Graeme[_3_]

Simple VB Script needed
 
I am a bit of newbie scripting and I can't getthe excel
functions to do it nicely and I just need a simple VB
script that will indent a selected row

Range("A25:D26").Select
Selection.InsertIndent 1

but have the number of indents equal the value in A25

Any ideas,

Thanks,
Graeme

Bob Phillips[_6_]

Simple VB Script needed
 
Range("A25:D26").InsertIndent Range("A25").Value

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Graeme" wrote in message
...
I am a bit of newbie scripting and I can't getthe excel
functions to do it nicely and I just need a simple VB
script that will indent a selected row

Range("A25:D26").Select
Selection.InsertIndent 1

but have the number of indents equal the value in A25

Any ideas,

Thanks,
Graeme





All times are GMT +1. The time now is 02:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com