visio textbox resize

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SammyB
    Recognized Expert Contributor
    • Mar 2007
    • 807

    #31
    Originally posted by joemo2003
    yeah, but only to the replacement text.
    Well then, I would have a sReplace1 and an sReplace2 or if there are a variable number of replacement rows, have an array of replacement text.

    Comment

    • joemo2003
      New Member
      • Feb 2007
      • 142

      #32
      Originally posted by SammyB
      Well then, I would have a sReplace1 and an sReplace2 or if there are a variable number of replacement rows, have an array of replacement text.
      but how to break the replacement text to sReplace1, sReplace2?

      Comment

      • SammyB
        Recognized Expert Contributor
        • Mar 2007
        • 807

        #33
        Originally posted by joemo2003
        but how to break the replacement text to sReplace1, sReplace2?
        You already have it that way in Excel. When you are getting it from Excel, don't concatinate the replacement rows together.

        Comment

        • joemo2003
          New Member
          • Feb 2007
          • 142

          #34
          Originally posted by SammyB
          You already have it that way in Excel. When you are getting it from Excel, don't concatinate the replacement rows together.
          I thought about that before, but look at my code,
          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)
          how can I separate the row?

          Comment

          • joemo2003
            New Member
            • Feb 2007
            • 142

            #35
            i 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

            • joemo2003
              New Member
              • Feb 2007
              • 142

              #36
              Originally posted by joemo2003
              i 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.
              got the row format slove, but still cannot figure out how to input to multiply file.

              Comment

              • SammyB
                Recognized Expert Contributor
                • Mar 2007
                • 807

                #37
                Originally posted by joemo2003
                got the row format slove, but still cannot figure out how to input to multiply file.
                multiply file? :confused:
                Go slower and give more details

                Comment

                • joemo2003
                  New Member
                  • Feb 2007
                  • 142

                  #38
                  Originally posted by SammyB
                  multiply file? :confused:
                  Go slower and give more details
                  In excel have three button, two button open two visio drawing directly, they look like:
                  Code:
                  Set vsDoc = vsDocs.Open(C:\folder\file#.vsd)
                  and third button use to input the text to those two drawing, but it only can input text to the last opened drawing, not both. I try use for loop
                  Code:
                  for each vsdoc in vsapp.documents
                  ...
                  next vsdoc
                  but it still input text to only one drawing.

                  Comment

                  • SammyB
                    Recognized Expert Contributor
                    • Mar 2007
                    • 807

                    #39
                    Originally posted by joemo2003
                    In excel have three button, two button open two visio drawing directly, they look like:
                    Code:
                    Set vsDoc = vsDocs.Open(C:\folder\file#.vsd)
                    and third button use to input the text to those two drawing, but it only can input text to the last opened drawing, not both. I try use for loop
                    Code:
                    for each vsdoc in vsapp.documents
                    ...
                    next vsdoc
                    but it still input text to only one drawing.
                    Well, 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

                    • joemo2003
                      New Member
                      • Feb 2007
                      • 142

                      #40
                      Originally posted by SammyB
                      Well, 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).
                      The 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

                      • joemo2003
                        New Member
                        • Feb 2007
                        • 142

                        #41
                        Originally posted by joemo2003
                        The 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.
                        Never Mind. I don't need to input to multiple application.

                        Comment

                        Working...