LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Fill Down & Copy

I recorded this code after putting 6/1/05 in A1

Selection.DataSeries Rowcol:=xlColumns, Type:=xlChronological, Date:= _
xlDay, Step:=1, Stop:=38534, Trend:=False

So -
dim x, y

x = Sheets("Sheet2").Range("A2")
y = 1 ' set y to the number of days between dates.

Range("A1")=Sheets("Sheet2").Range("A1")

Range("A1").DataSeries Rowcol:=xlColumns, Type:=xlChronological, Date:= _
xlDay, Step:=y, Stop:=x, Trend:=Fa


--
steveB

Remove "AYN" from email to respond
"STEVEB" wrote in
message ...

Hi

Does anyone have any suggestions for a macro that would fill dates down
on a spreadsheet based upon the certain dates entered on a different
sheet? For example on Sheet 1:

Cell A1 - Start Date - 1/1/2005
Cell A2 - End Date - 7/31/05

These dates vary & change all the time so I would like a Macro to look
at these dates and on Sheet 2:

Column A1 - Fill down all rows(212 days from 1/1/05 to 7/31/05) with
the range of dates on sheet 1(Cell A1 to A2).
Column B1 - Copy the Formula ( =TEXT(WEEKDAY(A2),"dddd")) in Column B
based on the number of rows generated from the start to the end date
(212 rows from 1/1/05 tp 7/31/05).

Any help would be greatly appreciated!

Thanks


--
STEVEB
------------------------------------------------------------------------
STEVEB's Profile:
http://www.excelforum.com/member.php...fo&userid=1872
View this thread: http://www.excelforum.com/showthread...hreadid=389971



 
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
Copy/Fill increments tcidawn Excel Worksheet Functions 8 June 27th 09 07:56 AM
Copy and Fill down data MFM Excel Worksheet Functions 3 December 29th 08 04:19 PM
Copy fill Ray S. Excel Discussion (Misc queries) 1 August 15th 08 06:47 PM
The fill feature in Excel that gives option to fill or copy KAHelman New Users to Excel 1 July 29th 05 07:47 PM
Fill Default/Fill Copy GregR Excel Programming 2 May 2nd 05 06:49 PM


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