Embedding Named Excel Range in Visio VBA

JJ_Excel

New Member
Joined
Jul 29, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I have an excel table and I follow the steps on How to link a Visio drawing to a specific region in an Excel worksheet - Office where I'm able to get to step 12. At this point I get the error, "Visio is unable to change the link source as requested." when I click "Open" after entering the item name. It then leaves Excel open so that I have to manually close it in the task manager before I can access the data again.

The steps up to point 12 I recorded a macro to try and see what it's doing and I get:

"Application.ActiveWindow.Page.InsertFromFile "C:\path\file.xlsx", visInsertLink"

The goal is this:
I have an excel file that I'm treating like a database. A second excel file links to this first file using PowerQuery and creates equipment schedules. Then I have a Visio document that has drawings for those pieces of equipment. I would like to create a button which will Input the equipment schedules into Visio.
 

Attachments

  • Capture.JPG
    Capture.JPG
    96.1 KB · Views: 12

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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