Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 331
Default loop to insert sequence in column

Hi,

I would appreciate some help with a macro that would insert a sequence in a
column whenever an user specifies starting & ending values and interval value.

For example, 100 , 150 , 0.5 should produce 100 in b1, 100.5 in b2, 101 in
b3 and so on.

Thanks in advance!

--
______
Regards,
Greg
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default loop to insert sequence in column

Greg,

Record a macro while using Edit | Fill | Series...
This is a sample of what you might get...

ActiveCell.FormulaR1C1 = "1"
Range("D5:D30").Select
Selection.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _
Step:=0.75, Stop:=21, Trend:=False

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Greg"
wrote in message
...
Hi,

I would appreciate some help with a macro that would insert a sequence in a
column whenever an user specifies starting & ending values and interval value.

For example, 100 , 150 , 0.5 should produce 100 in b1, 100.5 in b2, 101 in
b3 and so on.

Thanks in advance!
Regards,
Greg
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
Help with loop sequence Kasper Excel Discussion (Misc queries) 5 December 16th 08 01:36 PM
How do I insert new work sheets in numerical sequence? ray/c Excel Worksheet Functions 2 July 7th 06 01:26 PM
Using Loop to insert a row SharonInGa[_2_] Excel Programming 3 March 8th 05 08:04 PM
loop to insert rows wa_hawks Excel Programming 1 October 16th 04 09:43 PM
Cant run insert row through loop WashoeJeff Excel Programming 1 January 23rd 04 12:48 PM


All times are GMT +1. The time now is 08:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"