+ Reply to Thread
Results 1 to 8 of 8

'Evaluate' Error

  1. #1
    Registered User
    Join Date
    12-31-2014
    Location
    Vancouver, Canada
    MS-Off Ver
    2013
    Posts
    9

    Question 'Evaluate' Error

    Hi Guys,

    Just trying to grab a cell from another workbook using Evaluate as i dont want the formula in the workbook cell only the result.

    "Evaluate" i have been told is a very powerful function but it wont work for this... Is it possible?

    Please Login or Register  to view this content.
    Thank you

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: 'Evaluate' Error

    Just use .Value for the H23 cell the same way you use it for E196. No need to use evaluate if your description is accurate.

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: 'Evaluate' Error

    jonny, I think there is a syntax problem... you have a ' after the sheet name, but none before?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: 'Evaluate' Error

    You can't use evaluate on closed workbooks.

    Try:

    Please Login or Register  to view this content.
    This will get the value from the other book and then put the value that results into the cell
    Last edited by Arkadi; 02-05-2015 at 05:31 PM.

  5. #5
    Registered User
    Join Date
    12-31-2014
    Location
    Vancouver, Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: 'Evaluate' Error

    Sorry Arkadi that was a typo in my question. It still hits a debug error. (fixed in orig post)

    Quote Originally Posted by walruseggman View Post
    Just use .Value for the H23 cell the same way you use it for E196. No need to use evaluate if your description is accurate.
    It will then return with "=C:\[2015 COST SHEET.xls]COSTS'!H23" rather than the value I actually want. If I type "=C:\[2015 COST SHEET.xls]COSTS'!H23" in the cell it works so i'm sure there is a way for VBA to calculate that then give me the answer as plain text.
    Last edited by jonnyking; 02-05-2015 at 05:32 PM.

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: 'Evaluate' Error

    Yep... but see my last post just above yours... sorry, realized it after I'd already mentioned the syntax thing.

  7. #7
    Registered User
    Join Date
    12-31-2014
    Location
    Vancouver, Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: 'Evaluate' Error

    Quote Originally Posted by Arkadi View Post
    Yep... but see my last post just above yours... sorry, realized it after I'd already mentioned the syntax thing.
    Ah! Thank you Arkadi. Thats the very basic part i could get working sorted. Now to get to the meat of the problem. Thank you again guys. I think I can sort it from here

  8. #8
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: 'Evaluate' Error

    Great Let us know if you need more help, and please mark the post as solved if you are satisfied.

+ 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. Syntax error using Evaluate
    By chiidzzz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-28-2013, 05:04 PM
  2. Why does this evaluate to error value?
    By agarwaldvk in forum Excel General
    Replies: 0
    Last Post: 10-14-2010, 07:27 PM
  3. VBA evaluate code error
    By Dulanic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2010, 10:39 AM
  4. [SOLVED] Error 2015 with Application.Evaluate
    By Jeff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2006, 11:10 AM
  5. Evaluate error when using 2
    By crazybass2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2005, 01:06 PM

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