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...
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
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...
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...
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...
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...
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.”...
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...
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...
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.
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.