We help IT Professionals succeed at work.

Create Windows shortcut with /WrkGrp switch using VBA

bejhan
bejhan asked
on
Medium Priority
361 Views
Last Modified: 2012-06-27
This question has already been discussed here:
http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_21239762.html

But the solution involves refers to this page http://www.pacificdb.com.au/Support/code_shortcuts.htm
(link on there is outdated).

This involves having another file around all the time. Isn't there some other simpler way to do this?
Comment
Watch Question

DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
CERTIFIED EXPERT
Top Expert 2007

Commented:
Which link is outdated?  This link works:

http://www.pacificdb.com.au/Support/code_shortcuts.htm

mx

Author

Commented:
Just noticed that the admin updated the link (in the actual solution the link is outdated).

Author

Commented:
Just to clarify, I was able to see the page. I just don't like the solution provided (because ShellLnk.tlb is required to be around).
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
CERTIFIED EXPERT
Top Expert 2007

Commented:
ok.  what exactly are you needing to do?
Infotrakker Software
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2014
Commented:
This is VB code, but with the correct references (or Late Binding) it will work in Access also:

http://www.windowsdevcenter.com/pub/a/windows/2004/04/13/VB_Shortcuts.html

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
The question asker here (http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_21239762.html) was using that method, he was having a problem with the /wrkgrp being changes to \wrkgrp. The arguments property solves this problem though.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.