Consulting

Results 1 to 3 of 3

Thread: Hide values of functions in VB Editor

  1. #1
    VBAX Regular
    Joined
    May 2005
    Location
    Tallinn
    Posts
    26
    Location

    Hide values of functions in VB Editor

    Hi!
    Can anybody give me a suggestion how can I totally hide
    values for specific function from user viewing when during executing of VBA program (in Immidiate window, watcshes, Locals,...)?

    I have next problem:

    I have database and user should not access username, password and some Database string from some .xls file (from VB Editor). These parameters are in some protected .xla file as public function values.

    Regards,
    J?ri.

  2. #2
    Administrator
    2nd VP-Knowledge Base
    VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    Hi J?ri and welcome to VBAX

    What exactly do you mean by hide? If the user shouldn't even see the code at all, then why not protect the project?




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You can protect a VB project, but this is far from foolproof.

    You could also use some encrypting, but this is complex and the key would have to be stored somewhere.

    The safest way is to create a VB6 DLL with the critical data and access it via the VBA code. But remember that anyone else could call it in the same way.

Posting Permissions

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