Originally posted by joemo2003
visio textbox resize
Collapse
X
-
Originally posted by SammyBYou already have it that way in Excel. When you are getting it from Excel, don't concatinate the replacement rows together.
Code:'ws1 is sheet 1, ws2 is sheet 2 'iRow=ws1.Cells(j, 5).value sReplacement = sReplacement &ws1.Cells(j, 6).Text _ & ws2.Cells(iRow, i).Text & " " & ws.Cells(j, 7).Text & Chr(10)
Comment
-
Originally posted by joemo2003i think i can just not use the loop but write it out one row by one row for the replacemet text.
Another question, how to set multiply vsDoc as active document? So i can input text to multiply drawing.Comment
-
Originally posted by SammyBmultiply file? :confused:
Go slower and give more details
Code:Set vsDoc = vsDocs.Open(C:\folder\file#.vsd)
Code:for each vsdoc in vsapp.documents ... next vsdoc
Comment
-
Originally posted by joemo2003In excel have three button, two button open two visio drawing directly, they look like:
Code:Set vsDoc = vsDocs.Open(C:\folder\file#.vsd)
Code:for each vsdoc in vsapp.documents ... next vsdoc
Comment
-
Originally posted by SammyBWell, you must have two Visio Applications. In the button code, you need to check the global, vsApp. If vsApp Is Nothing, then you start Visio, otherwise, you just use vsApp. But, make sure that vsApp is only defined in one place: in the Code module (Module1).Comment
-
Originally posted by joemo2003The two visio application already open before press the input text button. Should I check if vsApp is Nothing in the input text button? but it is already open, it cannot open again.Comment
Comment