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: 2
Default Autofill Macro for 2 rows and 100 columns

Hi,

I'm trying to correct a macro that autofills the formulae held in cells
A1 and A2 and fills all the way along to CZ2.

This is what I have already.

With Worksheets("For Report")
.Range("A" & CStr(prev_points + 1)).AutoFill _
Destination:=.Range("A" & CStr(prev_points + 1) & ":A" & _
CStr(100 + 1)), Type:=xlFillDefault
End With


It runs, but it's filling vertical instead of horizontal. I've tried
changing the range from A to 1 so that it does the row instead of the
column, but the sub won't run when I change it.

Any ideas how I can:
(a) get this to fill along the row instead of down the column.
(b) get it to include row 2 as well as row 1.

Any help would be brilliant!

Thanks
D

 
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
MACRO COLUMNS, SKIP ROWS Dan Excel Discussion (Misc queries) 3 January 28th 10 06:13 PM
Macro to convert some columns to rows T.Vidak Excel Discussion (Misc queries) 3 July 3rd 08 02:25 PM
Autofill counting up Columns and Rows! fantomet Excel Worksheet Functions 5 December 14th 06 12:57 PM
Need help wiht a macro for autofill rows klafert Excel Worksheet Functions 9 September 10th 06 07:47 PM
autofill information from rows to columns without using transpose Rayce Excel Discussion (Misc queries) 1 September 4th 05 01:44 AM


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