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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. bdurst

    Label controls stopped working

    I also experimented with moving around the line of code which caused this problem. From the very first line of code to the very last, it seems no matter where I place it the same problem happens.
  2. bdurst

    Label controls stopped working

    That line moves down to the next line in the document which is a blank line. The exact position of this line within the document can change based on what text is generated in the while loop. The line after Selection.MoveDown is medicareForm.Show. This form inserts text on the document at...
  3. bdurst

    Label controls stopped working

    No problem. I appreciate your input as well as fumei's. The funny thing is when I create a simple test document to replicate the problem everything works fine. So there is something else going on...
  4. bdurst

    Label controls stopped working

    Thanks for the response combo. That will actually help me with another issue I have been thinking about. If I understand correctly it does not apply in this case though. I have three different labels: - Two are created in design mode at which time I add the form.show code. - One is...
  5. bdurst

    Label controls stopped working

    There is just one line of code that is supposed to fire when the labels are clicked: "formName.show". If I put a breakpoint on this line of code and then click on the label, the breakpoint is never reached. I also tried to recreate this error on a very simple test document but was unable to...
  6. bdurst

    Label controls stopped working

    No, I don't have any specific reason for using selection as opposed to activeDocument. I did try using activeDocument after reading your post to see if anything changed but it did not.
  7. bdurst

    Label controls stopped working

    The line of code is in the Document_New() procedure of the ThisDocument object for the template. The selection is the current position of the cursor (somewhere in the middle of document).
  8. bdurst

    Label controls stopped working

    I created an MS Word template which has a couple of labels called "lblSite" and "lblStatus" on it. When the user clicks on these labels, the click event is fired and some code that I wrote is executed. Everything was working fine until I added the following line to create a label on the fly...

Part and Inventory Search

Back
Top