+ Reply to Thread
Results 1 to 3 of 3

Excel Function Lookup

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    Ventura, California
    MS-Off Ver
    Excel 2007/ 2010
    Posts
    3

    Excel Function Lookup

    Can anyone tell me why this line of code is not working:


    Please Login or Register  to view this content.
    I keep getting an application defined or object defined error when I run it.

    Here is the entire subroutine:


    Please Login or Register  to view this content.
    Basically, it should do the following.

    Look at column A
    If there is a number in column A
    Look at the 0rg 5110 Projections Workbook Column 3
    Return the appropriate number.


    Open to any and all suggestions.

    Thanks,

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Excel Function Lookup

    Hi,

    How about this possibility. You are in Column 3 and you are trying to put a formula in it that takes a number from a column 5 to the left of column 3. That would be column -2 maybe? Perhaps the formula you are trying to put in the cell goes outside the possible range of cells/columns/rows?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    11-09-2012
    Location
    Ventura, California
    MS-Off Ver
    Excel 2007/ 2010
    Posts
    3

    Re: Excel Function Lookup

    Will look at that MarvinP. Thanks.

    Got the code to work otherwise- found 1 issues:

    1. Had to add an extra double quote at the end of the statement. Think this must fill the literal need- True/Fals.
    2. Have to have the projections book open when running. Added a couple of lines of code to open the book, then close it when done. Sure there is a better way to do this, just don't know it right now.

    If anyone has an idea how to cleanup the code and make it more elegant, it would be appreciated.

    Thanks,
    Scott

+ 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