Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to create a date range in Excel. I use a userform to enter
start and end date, using control source for the userform fields to pu the dates in a worksheet in A2 and a cell called A1Enddate. I then execute the following code: Sub Macro3() ' ' Macro3 Macro ' Macro recorded 15/04/2004 by blcutler ' Sheets("AutumnHT1").Select Range("A2").Select Selection.DataSeries Rowcol:=xlColumns, Type:=xlChronological Date:= _ xlWeekday, Step:=1, Stop:=Range("A1Enddate"), Trend:=False End Sub I get the following error: Run time error 1004 DataSeries method of range class failed Any ideas of what may be happening? There is defintely data put in th cells (A2 and A1Enddate) on AutumnHT1 by the userform. The Userfor executes on a different sheet hence the Sheets("AutumnHT1").Selec -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
creating columns based on date range | Excel Worksheet Functions | |||
Creating Aggregate Data by Customer Name for Specific Date Range | Excel Discussion (Misc queries) | |||
Creating date range for x-axis label in Excel '07 | Excel Discussion (Misc queries) | |||
suggestions on creating a text value based on a date range | Setting up and Configuration of Excel | |||
Creating Date Range in Pivot Microsoft Query | Excel Discussion (Misc queries) |