#1   Report Post  
Posted to microsoft.public.excel.misc
PaulW
 
Posts: n/a
Default Loop help

In columns F to AB I have various data, most of this data is in a Range format.
This information is calculated identically for rows 4 to 32, differing
mostly on what data is present on other sheets.
In D10, I have the following =33-COUNTIF(J4:J32,0) showing me what line the
process stops.

I want a macro that initially uses the information in row 4, doing things
like.
Copy the value in H4, and on sheet J4 paste into a cell determined by AA4
(the value of which is "C4" currently) it will do several of these. The idea
being on the main sheet this information will change on a day to day basis,
but when the macro is run it will record it perminantly.

I've done this sort of thing before, with lots of copy and pasting of single
cells to get what I want. But i've never really worked with loops. And after
it has used all the information from line 4, I want to do it all again from
line 5, then 6, etc, unless the line is equal to the value in D10 when it
will stop.

Can you reset variables inside a loop using the loop number in a
Range().Value ?
Any help even if not a final answer will be appreciated. Thanks

Reply
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
Loop time seems dependent on unrelated workbook - Why? Richard Excel Worksheet Functions 2 March 30th 06 11:59 PM
Loop gone crazy Dave Peterson Excel Discussion (Misc queries) 4 December 16th 05 03:38 PM
Do Loop Noemi Excel Discussion (Misc queries) 0 December 8th 05 10:43 PM
VB for excel, how do I loop through code steve hobden via OfficeKB.com Excel Discussion (Misc queries) 2 June 9th 05 01:59 PM
loop trough e-mail address list to send task lists with outlook Paul. Excel Discussion (Misc queries) 2 April 14th 05 11:48 AM


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