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 including IF statement

I am currently in the process of trying to create a loop that includes
an IF statement. The result I am trying to achieve is to have the loop
run until the IF statement equals true. Once it is true, pull in a
certain piece of data from another sheet and then copy the code to the
next cell down and repeat the same process until there is no more data
in the column right next to it on the left side.

I would greatly appreciate it if someone can assist me in this task.
Let me know if more info. is needed.

Yalex


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Loop including IF statement

do while not isempty(activeCell.offset(0,1))
if activecell.Value = "abc" then
activecell.offset(1,0)value = Worksheets("Data"). _
Range("B9").Value
end if
Activecell.offset(1,0).Select
Loop

--
Regards,
Tom Ogilvy

"yalex " wrote in message
...
I am currently in the process of trying to create a loop that includes
an IF statement. The result I am trying to achieve is to have the loop
run until the IF statement equals true. Once it is true, pull in a
certain piece of data from another sheet and then copy the code to the
next cell down and repeat the same process until there is no more data
in the column right next to it on the left side.

I would greatly appreciate it if someone can assist me in this task.
Let me know if more info. is needed.

Yalex


---
Message posted from http://www.ExcelForum.com/



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
IF STATEMENT including BLANK RESULT Sondra Excel Discussion (Misc queries) 2 May 6th 09 05:40 PM
If statement with Vlookup - including ISNA function to compare two columns from different worksheets nakliwala Excel Worksheet Functions 3 September 25th 07 09:30 AM
referencing cells including an IF statement??? Helpme Excel Worksheet Functions 0 December 28th 06 09:57 PM
IF Statement, including AND Louise Excel Worksheet Functions 5 June 13th 06 03:42 PM
IF statement including BETWEEN simmerdown Excel Worksheet Functions 17 April 3rd 06 03:56 PM


All times are GMT +1. The time now is 11:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"