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

Recent content by Gwynne

  1. Gwynne

    Configure Buttons for macros

    I am working in Word XP and I am creating a toolbar for a group of users. After I create a macro, I want to be able to install a button by which to use the macro. I get a bunch of icons that I can choose from, but I would like to pick ones that are not shown on the list. Does anyone know how...
  2. Gwynne

    Need code for printing duplex

    Does anyone have any VBA code for printing a document in duplex mode. I've tried to create a macro and set it to a button (That didn't work) and I've tried putting the macro code inside my other code (That didn't work either.) Please, please tell me it can be done. TIA Gwynne
  3. Gwynne

    VBA - How do I set an object variable?

    I'm sorry to do this to you, but here is my cleaned up code. I have highlighted the line where I get the error "Object Required" when I take out the "Object" variable. Oh, BTW, this is a Word macro. Private Sub Document_New() 'declare vars Dim strCaseNum As String...
  4. Gwynne

    VBA - How do I set an object variable?

    Thanks RJRatLD and Loomah for answering. (Bet you’ll be glad to be rid of me!) RJRatLD, I have already incorporated the code that you gave me. The first line of it is where I’m getting the error. Loomah, Yes, I have created a UserForm, and changed the name in the properties window to...
  5. Gwynne

    VBA - How do I set an object variable?

    Thanks again for your prompt answer. No wonder you were selected as a top expert. Congratulations! The code that is highlighted is at the point where I show the form. "frmVolumePageOrTransactio.Show" (without the "") Additionally, I don't have any computers that are...
  6. Gwynne

    VBA - How do I set an object variable?

    I guess I must be as brain-dead as my users. I have corrected my Dim statements, and replaced the If… statement, but when I try to step through the code, I get an error message “Object required.” So I placed another Dim statement with “frmVolumePageOrTransactio As Object”. When I stepped...
  7. Gwynne

    VBA - How do I set an object variable?

    Skip, Loomah, and Zathras, thank you very much for trying to help me. Loomah, I have cleaned up my code as you suggested; however, I don’t understand what you mean when you say “…without declaring the option button or user form as variables as they already exist in your project as objects.”...
  8. Gwynne

    VBA - How do I set an object variable?

    Hello All, I am a nu-B and don’t know much about programming. I have been tasked with converting WP 5.1 macros to Word XP and boy, do I need help! I have created a template, and am using InputBoxes to gather information to be plugged into the document. At one point the user will have to...
  9. Gwynne

    Macro on Template

    I believe that you need to create your template and put your macro within the template. Will this work for you? Gwynne
  10. Gwynne

    InputBox used in a form template

    Thanks! I knew it would be something simple.
  11. Gwynne

    InputBox used in a form template

    In a Word macro, I open a document, and an InputBox requests a name. I want this name to then be placed into that document. In Word 6, this was accomplished in the following manner: Name$ = InputBox$ ("Enter your name.", "Name") Insert (Name$) VBA does not have a...
  12. Gwynne

    How can I alter a field from memo to character?

    I have a table (transactions) that has a memo field (trans) in it. I need to modify the memo field and make it a character field. I have tried ALTER TABLE and ALTER COLUMN, but the only thing VFP does is delete my field. Thanks for any help.
  13. Gwynne

    All shortcuts run the same program

    They are all linked to *.exe files.  The shortcuts that are executed from a *.pif file work just fine.  Any suggestions?
  14. Gwynne

    Any shortcut opens the same program

    Thanks chgwhat, but the registry looks the same.  I guess the next thing is reinstalling NT. Huh?
  15. Gwynne

    All shortcuts run the same program

    I have a user that no matter what shortcut on her desktop or application executed from Start/Programs, the same program opens. According to Microsoft, the registry settings appear to be OK.  Any suggestions?

Part and Inventory Search

Back
Top