Solved

VBA using ShellExecute to Open a flowchart file

Posted on 2013-11-11
3
423 Views
Last Modified: 2013-11-15
I have a client who uses RRFlow software to create flowcharts. I have an Access application that permits the saving of paths to various file types to be related to specific pieces of equipment, for example.

From within the application I have an On Double-click to permit the user to view associated documents from within the application.

For example:

Equipment ABS

* C:\.....\ABS.doc
* C:\.....\ABS.xls
* C:\.....\ABS.pdf
* C:\.....\ABS.txt

etc...

When the user double-clicks the record my code opens the file in its native application.

I use the ShellExecute funtion and it works great -- however -- I am having a problem with the flowchart file type with an extension of .flo.

Does anyone have any ideas?
0
Comment
Question by:Ei0914
  • 2
3 Comments
 
LVL 61

Assisted Solution

by:mbizup
mbizup earned 500 total points
Comment Utility
Also try Application.Hyperlink YourFile.flo

This (either, Ithink) should work -- assuming that you have the default application is set correctly for files with that extension.
0
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
Comment Utility
This shows you how to set the default application for a file type in Windows 7.  The exact steps will differ based on your operating system:
http://windows.microsoft.com/en-us/windows7/change-the-program-that-opens-a-type-of-file
0
 

Author Closing Comment

by:Ei0914
Comment Utility
As always, thanks!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now