LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default MACRO TO REPEAT FORMULA

Sure, but there is no definition for all the way down the sheet.

for i = 20 to 65536 step 10
cells(i,"E").Resize(,10).FormulaArray = "some formula"
Next

Will fill up the worksheet.

set rng = Activesheet.UsedRange
lastrow = rng.Rows(rng.rows.count).row
for i = 20 to lastRow step 10
cells(i,"E").Resize(,10).FormulaArray = "some formula"
Next

goes through the last used row.

--
Regards,
Tom Ogilvy



jay dean wrote in message
...


Tom-
The Macro ends at E90, but I would like for it to continue all the
way down the sheet. Is it possible?

Thanks!
Jay Dean


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



 
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
How do I set up a macro to repeat based on a conditional formula? moneycop Excel Discussion (Misc queries) 1 April 17th 09 02:25 AM
Repeat a Macro Victoria[_3_] Excel Worksheet Functions 1 September 25th 07 07:11 PM
macro to repeat a formula a set number of rows apart steveo Excel Discussion (Misc queries) 1 July 10th 06 09:21 PM
macro to repeat a formula a set number of rows apart steveo Excel Discussion (Misc queries) 0 July 10th 06 12:46 AM
repeat macro formula to all cells dave glynn Excel Discussion (Misc queries) 8 March 10th 05 08:42 PM


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