Results 1 to 6 of 6

Thread: Define an excel built-in function

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2003
    Location
    USA, East Coast
    Posts
    257

    Define an excel built-in function

    Hey All,

    How do I define the built-in FORMAT function? My Excel app requires it


    Is it something like:
    Declare Function Format Lib "kernel32" ..................?


    Thanks,
    CJ

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132
    You don't define it - just use it. But what is it that you need to format?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2003
    Location
    USA, East Coast
    Posts
    257
    My app gets errors on PCs that don't have the VB libraries installed.

    By defining everrything - so far- the erroes have gone away.

    I'm getting an error on the line that is defining the Format builtin function. So I think If I define it, the error will go away.

    I'm formatting a value located in a Worksheet Cell and assigning it to a text box on a form.

    Thanks,
    CJ

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132
    Oh, I see ...
    VB executables are not stand along programs - they must installed properly by whatever packaging utility you can use - perhaps Package And Deployment Wiazard (aka P&DW) that comes shipped with VB. So, if you just copy/pasted your exe file from dev machine to user - build distribution package first and then install it.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2003
    Location
    USA, East Coast
    Posts
    257
    Thanks for your reply.

    The thing is the client wants the app to run over the Internet ( on their web server) so I cannot install anything to anyone's computer because of firewalls and other software.

    Can you suggest another way around this?

    CJ

  6. #6
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132
    You may package at least vb's runtime files + referenced libraries and zip'm up but your users will have to know how to register those files. Another way (and it's much better and cleaner too) create a self extract install package and have link to it available on your page so they can download and install first.

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