Results 1 to 4 of 4

Thread: Calculate function fails after converting to Late Binding [RESOLVED]

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Location
    Sevenoaks, UK
    Posts
    11

    Calculate function fails after converting to Late Binding [RESOLVED]

    I have written a program that does an extensive amount of Excel manipulation. To enable it to run on a range of target PCs I have converted to late binding (following Si_the_Geek's excellent tutorial on how to do this). This includes adding the XL97 constants module.
    However the program now fails when it reaches the Calculate function - Compile Error, Sub or Function not defined.
    Any ideas please.
    Geoff
    Last edited by Spinaker; Apr 20th, 2006 at 09:32 AM.
    Geoff

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Calculate function fails after converting to Late Binding

    Post the code you are using

    (btw: nice to see that someone else spells thier name the CORRECT way )


    -Geoff
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Location
    Sevenoaks, UK
    Posts
    11

    Re: Calculate function fails after converting to Late Binding

    Many thanks for your offer of help.
    I have just twigged what I have done wrong.
    Having converted to Late Binding I failed to identify the Excel object (in my case xlApp) for the Calculate function.
    So the cure is - xlApp.Calculate
    My silly mistake but shows one has to be careful.
    Geoff

  4. #4
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Calculate function fails after converting to Late Binding

    glad it was an easy fix

    -Geoff
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

Posting Permissions

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



Click Here to Expand Forum to Full Width