LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Noemi
 
Posts: n/a
Default Help with Do...Loop

Hi
I need a check to be done to see if column a has a number in it then to
check if column b has a number.

If column B doesn't have a number then I need it to stop and give a msgbox,

When column A doesn't have data then I need the loop to stop as we dont have
to check column b

The code below is what I have but when I try to run it it keeps saying LOOP
WITHOUT DO.

I hope someone can help me as I am not very good with loops.

mykeycode = Range("B32")
mysell = Range("N32")
Do
mykeycode = mykeycode + 1
mysell = msell + 1
If mynum.Value < "" Then
If mysell.Value = "" Then
mysell.Select
MsgBox "Enter the ADV Sell Price"
Exit Do
End If
Loop Until mykeycode.value = ""


Thanks
Noemi
 
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
hysteresis loop olivekim Charts and Charting in Excel 1 October 28th 05 04:22 AM
Figuring out loop for a production schedule Naji Excel Discussion (Misc queries) 2 October 26th 05 02:45 AM
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
Printe Autofilter Criterias in a Loop Paul. Excel Discussion (Misc queries) 1 March 25th 05 12:51 PM


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