LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default conditional statements


Hi, I'm trying to use a macro to edit a column of data, but I'm quite
unfamiliar with the syntax of VB. in cell A1 i have the number of
people in a sample group. The Length of column B is the random number
stored in A1 (the number of people in the group) I want to go through
Column B and delete any number that is below 40 and above 80. This is
how I want the loop to look, if it were written in Java

Int Cellnum = 1
While {(Cellnum < CellA1)
If (Cellnum 80)
clear cellnum
If (Cellnum <40)
clear Cellnum)
Cellnum+=1
}

Thanks in advance


--
flyingmeatball
------------------------------------------------------------------------
flyingmeatball's Profile: http://www.excelforum.com/member.php...o&userid=37302
View this thread: http://www.excelforum.com/showthread...hreadid=573816

 
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
Conditional If Statements [email protected] Excel Discussion (Misc queries) 4 September 3rd 08 04:25 PM
Conditional If Statements [email protected] Excel Discussion (Misc queries) 2 September 3rd 08 04:18 PM
Conditional statements Sue Excel Worksheet Functions 1 May 12th 08 10:14 PM
Conditional statements Jon Minken[_2_] Excel Programming 4 June 24th 04 11:02 PM
Conditional statements Mark Excel Programming 2 December 31st 03 09:38 PM


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