+ Reply to Thread
Results 1 to 4 of 4

No error but no result returned while performing a VBA Sorting Code

  1. #1
    Forum Contributor
    Join Date
    04-07-2013
    Location
    France
    MS-Off Ver
    Excel 2011
    Posts
    166

    No error but no result returned while performing a VBA Sorting Code

    Hi,

    I have the following problem with a code. I have created a sorting procedure in VBA. It is supposed to sort values and then return the value from the sorted array that corresponds to Int(n*a), where n=177 and a=0.05. The problem is that it returns no error and NO VALUE..

    Would anyone be able o see where could be the problem? I attached my file in google docs! https://docs.google.com/file/d/0Bwjh...it?usp=sharing

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: No error but no result returned while performing a VBA Sorting Code

    The array ValeursActions is never filled with values.

    Which sheet should it be taking the values from?

    Which cell is Cells(i+1) supposed to refer to?

    If I is 1 to 177, then that's going to refer to the cells in B1:FV1.

    Also, without a worksheet reference it will refer to the worksheet the code is in, which is another reason to have the code in a standard module and to use a worksheet reference.
    If posting code please use code tags, see here.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: No error but no result returned while performing a VBA Sorting Code

    This doesn't error and puts values on 'Peformance des fonds'.

    Don't know if they are the right values but they are values.
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    04-07-2013
    Location
    France
    MS-Off Ver
    Excel 2011
    Posts
    166

    Re: No error but no result returned while performing a VBA Sorting Code

    Thanks, ..yes, they are the right values And I just saw I wasn't filling ValeursAction with anything either

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1