LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Macro to move, create formulas and loop

I'm really struggling with this as I have no idea what your data looks like,
and so I am struggling to understand what needs to be done.

Why don't you mail your workbook direct to me at
bob . phillips @ tiscali . co . uk (without the spaces)
and I will try and sort it.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"NewMacro " wrote in message
...
Let's try this again.

Do
iFirst = ActiveCell.Column
ActiveCell.FormulaR1C1 = "=SUM(RC" & iFirst & ":RC" & iLast & ")"
ActiveCell.Offset(1, -9).Range("A1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(-1, 0).Range("A1").Select
Selection.End(xlToRight).Select
ActiveCell.FormulaR1C1 = "=SUM(RC" & iFirst & ":RC" & iLast & ")"
Loop Until IsEmpty(ActiveCell.Offset(0, 1))
End Sub

That's the correct code that gives me the previous results.
I guess I didn't know I had to set the iLast. How is it done? We are
fast approaching my knowledge base limit!! :(

Thanks for your help.


---
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
Create a loop stephenc Excel Discussion (Misc queries) 4 January 12th 09 03:54 PM
Create Move Macro for Closed Workbook Roger Excel Discussion (Misc queries) 3 January 15th 08 02:19 AM
Use a loop to create multiple Charts - Suggestions ? APOEL Charts and Charting in Excel 1 July 29th 06 03:36 AM
Using for loop in a macro dipti.agrawal Excel Programming 2 January 16th 04 06:18 PM
Create macro for formulas celia Excel Programming 0 November 11th 03 06:58 AM


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