Open External Files

Aarong

New Member
Joined
Jul 21, 2002
Messages
6
I am attempting to open a Visio file from a command button on my form, referencing a field on the same form. I can get the app to open, but not the file. Any hints?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi ya, you need to include both path to visio and file. example:-

Private Sub Command41_Click()
On Error GoTo Err_Command41_Click

Dim stAppName As String

stAppName = "C:Program FilesVisiovisio32.exe H:userdataDoubleDebit.vsd"
Call Shell(stAppName, 1)

Exit_Command41_Click:
Exit Sub

Err_Command41_Click:
MsgBox Err.Description
Resume Exit_Command41_Click

End Sub
 
Upvote 0
That works until you insert a field name. I am trying to pull floor plans for businesses in the database. Each business has an individual drawing file. When I click the command button, I would like to pull the file based on the business record that is active. The field is [Business].FloorPlan and the path is c:Program FilesVisioDrawings.
Thanks
 
Upvote 0

Forum statistics

Threads
1,221,503
Messages
6,160,195
Members
451,630
Latest member
zxhathust

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top