Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Files in Visio?

Status
Not open for further replies.

Alcedes

Technical User
Mar 25, 2008
46
0
0
US
Ok. This may not be the BEST way of doing this, but it is what I thought of...

I want to embed several help files and other such information into a visio diagram in the form of an object - wordpad document.

And at specific times, the coding will grab the data from that object, and place it into a list box.

The problem is, I do not know how to reference the information.

For example, to grab the data from my excel sheet i have embedded i use the line of code:
Set xlsheet = ActivePage.Shapes("DataBank").Object.Worksheets(10)

And then I tell it somewhere else:
Variable = xlsheet.range(coumn & row)


How do i accomplish the same task, but with a text file instead?
 
If it would be easier to use a Microsoft Word file instead, that is fine also. It makes no difference to me as long as it works.
 
I am now doing this using a microsoft word object instead of wordpad.

Ok..I have it working..sort of..

ActivePage.Shapes("TESTER").Object.Range(B, E)

Where B is the first character you would like to retrieve
and E is the last character you would like to retrieve


But how do I tell it to move down to the next line?
 
Solved this one on my own. Thanks for reading though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top