Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
DataSeries Method
Hi Michael
Sub test() Range("D2") = 1 Range("D2").AutoFill Destination:=Range("D2:D39"), Type:=xlFillSeries End Sub -- XL2002 Regards William "Michael Allen" wrote in message ... | I am trying the fill a range with a progression 1,2,3,4 etc using the | DataSeries method. What is the syntax? | | Thanks, | Mike | | |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
DataSeries Method
When I recorded a macro to do this I got:
Range("A1").Select Selection.AutoFill Destination:=Range("A1:A21"), Type:=xlFillSeries The selections aren't necessary: Range("A1").AutoFill Destination:=Range("A1:A21"), Type:=xlFillSeries or, if your range is in a variable: With rng .Cells(1, 1).AutoFill Destination:=.Cells, Type:=xlFillSeries End With In article , "Michael Allen" wrote: I am trying the fill a range with a progression 1,2,3,4 etc using the DataSeries method. What is the syntax? Thanks, Mike |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
DataSeries Method
I am trying the fill a range with a progression 1,2,3,4 etc using the
DataSeries method. What is the syntax? Thanks, Mike |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
DataSeries Method
Thanks William for the very prompt response. That worked fine!
Mike "William" wrote in message ... Hi Michael Sub test() Range("D2") = 1 Range("D2").AutoFill Destination:=Range("D2:D39"), Type:=xlFillSeries End Sub -- XL2002 Regards William "Michael Allen" wrote in message ... | I am trying the fill a range with a progression 1,2,3,4 etc using the | DataSeries method. What is the syntax? | | Thanks, | Mike | | |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Setting dataseries-colors with VBA in XL2007 | Charts and Charting in Excel | |||
Please post this thread a correct full method, method about | New Users to Excel | |||
Please post this thread a complete correct method, method about te | New Users to Excel | |||
creating dataseries from real time data | Excel Worksheet Functions | |||
How can I calculate the area between axis and dataseries xl2002 | Excel Discussion (Misc queries) |