Consulting

Results 1 to 9 of 9

Thread: Sleeper: Change login path for distributing other loggers

  1. #1

    Arrow Sleeper: Change login path for distributing other loggers

    I hv to set macro paths everytime to other computer loggers assigned under my computer login.

    Is there any other quick solution to this?? so that if I distribute my macro file (startup file) to others, they can run my macro under their login name.

  2. #2
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    Use this to build your path.
    Application.StartupPath

  3. #3
    can u guide me this in little details plz...

    where to put the above code and from where to execute??

    Is there any other instruction i hv to write for changing the path???

  4. #4
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    Can you give an example of a path you would use?

  5. #5
    If I run macro under my computer login, suppose "ILYAS" it works fine.

    If I run macro under other login name, suppose "KUSHAL" it keeps telling,
    "The macro "C:\Documents and Settings\ILYAS\Application Data\Microsoft
    \Excel\XLSTART\PERSONAL.XLS'!Macro1' cannot be found."

    This happens when I click any shortcut button on toolbar to run my macro.

    While, if it is assigned with any shortcut key, then it works fine.

    Then I hv to give path for each and every shortcut button on toolbar by right-clicking and assigning the macro with current login name (i.e KUSHAL).

  6. #6

  7. #7
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    See if this Article is of any use to you.

  8. #8
    So sorry, its of no use. it was the only basic guidance and not the solution to my problem.

  9. #9
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    Sorry, I must have been thinking about something else.

    What you should do is put the code in an Add-In.

    Put the code in a workbook then save the workbook as an Add-In. Then you can distribute the Add-In and each user can install it if they want to use it.

    If you need help converting the code to work with an Add-In, just post the code that you are using.

Posting Permissions

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