Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Loop inside a Loop


Right now,

the code does this

I have about 200 rows of data - item numbers in Sheet1 - Column a
(A2...)

The code you helped me with does the following

It runs through these rows of data in Sheet1 - Column A to the
end.xldown

Then it opens Sheet15 columnA (A2) and if it finds the number it does
nothing, if it doesn't find the number it adds the number to the next
open row.

This code loops through all the item number on Sheet1

The only condition i put in was this

If wsLook.Range("F" & i).Value = "YES" Then

rest of code.


I want to do the following.

After the code puts the new entries in the sheet if there are any. Is
there anyway to

1. Look through Sheet1 Column j (j2...last row with data....)

2. If the cell contains the word YES then go to Sheet15 and find the
corresponding item number - Column A (A2....last row with data) and put
the word YES in Sheet15 Column D of the item number that it matched

I hope this helps

Thanks


--
jhahes
------------------------------------------------------------------------
jhahes's Profile: http://www.excelforum.com/member.php...o&userid=23596
View this thread: http://www.excelforum.com/showthread...hreadid=530586

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
use time functions inside if loop saedeepu Excel Worksheet Functions 2 September 17th 09 12:55 PM
Create an array inside a For...Next loop Eric Winegarner[_2_] Excel Programming 3 October 27th 05 12:26 AM
Advancing outer Loop Based on criteria of inner loop ExcelMonkey Excel Programming 1 August 15th 05 05:23 PM
Problem adding charts using Do-Loop Until loop Chris Bromley[_2_] Excel Programming 2 May 23rd 05 01:31 PM
declaring active cell inside a for loop and offsetting from it l1075[_4_] Excel Programming 2 May 5th 04 08:40 PM


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