Simple VB Script needed

G

Graeme

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
 
B

Bob Phillips

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top