Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula or script needed Jeremy Excel Discussion (Misc queries) 1 August 17th 08 03:55 AM
simple vb script to open, refina Excel Discussion (Misc queries) 0 June 14th 08 07:37 PM
Why won't this simple VBA script work in excel 2002? Calle Excel Discussion (Misc queries) 1 May 29th 06 12:21 PM
Help needed (Automatic script function) Soul Excel Discussion (Misc queries) 5 January 10th 06 03:48 PM
Need help with simple VBA Script Donald Parker Excel Programming 7 January 25th 04 10:19 PM


All times are GMT +1. The time now is 10:33 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"