LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem Creating a Date Range

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
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
creating columns based on date range childofthe1980s Excel Worksheet Functions 0 April 17th 08 06:25 PM
Creating Aggregate Data by Customer Name for Specific Date Range [email protected] Excel Discussion (Misc queries) 2 December 6th 07 01:46 PM
Creating date range for x-axis label in Excel '07 Bob Excel Discussion (Misc queries) 2 February 23rd 07 03:06 AM
suggestions on creating a text value based on a date range Allen Clark Setting up and Configuration of Excel 0 June 28th 06 02:44 AM
Creating Date Range in Pivot Microsoft Query Ian Excel Discussion (Misc queries) 0 November 20th 05 10:10 PM


All times are GMT +1. The time now is 09:41 PM.

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"