#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default formula outcomes

can anyone tell me if theres any errors in this and what the outcome
would be?

sub test ()


dim I, J As Integer
dim x as single
for i = 1 to length
for j = 1 to (length - i)
If A(j) < A )j +1) Then
x = a(j +1) = A(j)
A(j) = x
end if
next j
next i
end sub

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default formula outcomes

See responses elsewhere - please do not multi-post.

Pete

On Aug 29, 12:47 pm, biker man wrote:
can anyone tell me if theres any errors in this and what the outcome
would be?

sub test ()

dim I, J As Integer
dim x as single
for i = 1 to length
for j = 1 to (length - i)
If A(j) < A )j +1) Then
x = a(j +1) = A(j)
A(j) = x
end if
next j
next i
end sub



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default formula outcomes

Please don't multipost.
--
David Biddulph

"biker man" wrote in message
oups.com...
can anyone tell me if theres any errors in this and what the outcome
would be?

sub test ()


dim I, J As Integer
dim x as single
for i = 1 to length
for j = 1 to (length - i)
If A(j) < A )j +1) Then
x = a(j +1) = A(j)
A(j) = x
end if
next j
next i
end sub



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 or statements to get three possible outcomes Dorothy A Excel Worksheet Functions 4 January 15th 07 10:15 PM
256 possible outcomes MarkN Excel Discussion (Misc queries) 9 June 28th 06 08:33 AM
best and worst outcomes xela1986 Excel Worksheet Functions 1 April 24th 06 11:27 PM
IF statement with 3 possible outcomes djmillis Excel Worksheet Functions 2 November 12th 04 03:13 PM
How do I create a formula that could have two different outcomes? Matt Excel Worksheet Functions 3 November 9th 04 11:15 PM


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