+ Reply to Thread
Results 1 to 1 of 1

Trouble with syntax, either with the If/Then funcition or in properly using CVErr

  1. #1
    Registered User
    Join Date
    12-27-2018
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2013, 2016
    Posts
    25

    Trouble with syntax, either with the If/Then funcition or in properly using CVErr

    Hi all, I've got another one for you today. This one might be complex but I highly doubt it. I'll do my best to explain the project below, I've attached a sample workbook if it helps.

    All in all the workbook is designed to take the first worksheet and restructure it into a different format based on its contents. The button on sheet 1 runs a series of macros that do just that, and a lot of it is pretty straightforward and no doubt probably unnecessary. However, most of it works.

    Where it doesn't seem to work is in the later stages: I have a function that searches the original array for a cell that has three corresponding values; "AlturaLookup" and the sub that generates the criteria for running AlturaLookup and loops it to populate the new format; "RunLookup"

    Please Login or Register  to view this content.
    Now AlturaLookup works just fine in a vacuum, and I know there's some issues with getting RunLookup to populate the table in the right way, but where I'm having particular trouble is in this section of RunLookup

    Please Login or Register  to view this content.
    Apparently
    Please Login or Register  to view this content.
    seems to work, no errors or anything, but it just skips to the EndIf, so it seems like I'm equating the two improperly. What I want it to do is essentially: "If there's an error, run the function until there is no error; otherwise change the value of a cell based on the various counters that are running"

    Does that make sense?

    Thanks in advance to anyone who reads this, hope it's not too long.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Trouble making to sources of time compare properly.
    By Jocamo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-27-2015, 06:10 PM
  2. Trouble with proper syntax for SUMIFS
    By JRay0108 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-21-2012, 08:24 PM
  3. [SOLVED] Trouble with IF/AND/OR Syntax
    By Vladamir in forum Excel General
    Replies: 2
    Last Post: 06-18-2012, 11:27 AM
  4. Trouble with combining 2 macros to loop properly
    By jman0707 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-06-2008, 10:17 AM
  5. IF funcition question
    By Dallas6570 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-24-2007, 02:31 PM
  6. trouble with syntax with fill down in Excel
    By ca1358 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2006, 12:40 PM
  7. Trouble with Syntax - IF formula
    By Bert via OfficeKB.com in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-07-2005, 08:06 PM

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