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: 31
Default Range question

Hello,

I have a spreadsheet with dates going across in row 1 and names going down
in column A. The number of dates and the number of names are variable and
change each time I run this macro. I want to use a fill macro that will fill
a single formula down to the last row and then also fill it across to the
last column.

To get my formula to fill down to the last row in column A I'm using this
code:

Sub Fill()
lastrow = Range("A65536").End(xlUp).Row
Range("B2:B" & lastrow).Formula = "=1+1"

So this will fill it down, but how can I add to this so I can select the
recently filled down formulas and drag them across to the last column that
has dates in it?

THANK YOU FOR YOUR HELP!!!!
 
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
Range Question / error 1004: method Range of object Worksheet has failed Paul Excel Programming 3 April 7th 05 02:56 PM
range question CG Rosén Excel Programming 2 November 26th 04 02:21 PM
range: question Simon Sunke Excel Programming 2 February 23rd 04 03:25 PM
range question Simon Sunke Excel Programming 0 February 23rd 04 02:41 PM
Range.Formula and Range question using Excel Automation [email protected] Excel Programming 0 September 19th 03 04:53 AM


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