M
MikeM
As recommended, I bought Visio 2007 and read the articles Scott recommended.
But they're not that clear. Two questions (for the moment, anyway!):
1. As suggested, I turned on the macro recorder and ran the data link
utility. Every time I run the macro to link an Excel file to a document
(while debugging), there's an error because there's a new ItemFromID number
in the line
Application.ActiveDocument.DataRecordsets.ItemFromID(5).SetPrimaryKey
VisPrimaryKeySettings.visKeySingle, vsoPrimaryKeys1
How do I ascertain the number when I run the macro? Or do I even need this
line?
2. I have a simple data set with 3 columns: year, pinX and pinY. I want to
use VBA to sequentially move an icon year by year (as in Hans Rosling's
Gapminder project at http://www.ted.com/index.php/talks/view/id/92). How do I
reference a point? That is, how do I assign Sheet1!B2 to the shape's pinX
and Sheet1!C2 to pinY?
TIA,
Mike
But they're not that clear. Two questions (for the moment, anyway!):
1. As suggested, I turned on the macro recorder and ran the data link
utility. Every time I run the macro to link an Excel file to a document
(while debugging), there's an error because there's a new ItemFromID number
in the line
Application.ActiveDocument.DataRecordsets.ItemFromID(5).SetPrimaryKey
VisPrimaryKeySettings.visKeySingle, vsoPrimaryKeys1
How do I ascertain the number when I run the macro? Or do I even need this
line?
2. I have a simple data set with 3 columns: year, pinX and pinY. I want to
use VBA to sequentially move an icon year by year (as in Hans Rosling's
Gapminder project at http://www.ted.com/index.php/talks/view/id/92). How do I
reference a point? That is, how do I assign Sheet1!B2 to the shape's pinX
and Sheet1!C2 to pinY?
TIA,
Mike