I appreciate help with the following question. I have an Excel range of cells (let's call it "Table A") and I would like to copy that Range/Table into Visio using VBA.
Without VBA - I can copy the range in Excel, go to Visio - Insert - Chart - go to Sheet1 tab - Paste
Using VBA - I am a novice so this is what I think it should look like:
Without VBA - I can copy the range in Excel, go to Visio - Insert - Chart - go to Sheet1 tab - Paste
Using VBA - I am a novice so this is what I think it should look like:
Code:
Set AppVisio = CreateObject("visio.Application")
AppVisio.Visible = True
AppVisio.Documents.AddEx "basicd_u.vst", 0, 0
Worksheets("Sheet1").Range("TABLEA").Copy _
AppVisio.ActiveWindow.Page.Add.Paste