Thanks. Everything is working now. It was easy to find my problem (an extra period) once I figured out that the problem was in the userform code, rather than in the frmEpicDocType.Show code in my AutoNew.
I just figured out that it must have something to do with my code that I put in the frmEpicDocType, because when I take all of the code out and simply have the userform with no code, then I can run the frmEpicDocType and it comes up just fine. What I can't figure out is, why then would it error...
The new userform is actually in the template, the same template that has the AutoNew module I'm working with. And yes, this old template/Word Basic code is being opened in Word 2003 and works just fine, but I can't get it to show this new userform. By design mode, do you mean in VBA, just...
It is within the AutoNew module that I need to show the new userform, and at the bottom of the AutoNew module I have inserted frmEpicDocType.Show, but it always debugs to that line of code, saying, Run-time error '424', Object required. Any suggestions? What does object required mean? I have...
Yes, I am using Word 2003. But the original template is quite complicated and right now I don't have the time to recreate it, although I know that is the best solution, so I need a quick fix to simply be able to load/show a new form.
I am working with an old Word template created by someone else years ago using Word Basic. I need to make some modifications to the template, including a new userform I created (with VBA) that I need to call up at the end of the existing AutoNew module (which is written in Word Basic) but my...
I am using the code below:
Sub Macro9()
ActiveDocument.SaveAs FileName:="c:\temp\name.txt", FileFormat:=100
End Sub
Is there a way to bypass/avoid the warning prompt that comes up when this code is run that says, "This file needs to be saved using the MS-DOS Text with Layout text converter...
I would like to write some code that does the following:
If the print preview screen is open Then
Close the print preview screen.
I know the code for the second line
(ActiveDocument.ClosePrintPreview), but I am having trouble coming up
with how to write code for...
Background information:
- I have a template created in Word 97 that has quite a few userforms and macros in it.
- The template is posted on our company's intranet.
- All employees have downloaded the template from the intranet.
- The template is changed periodically.
PROBLEM: How do we let the...
Is there a way to automatically have information that the user types in a textbox of a userform get saved as a field in the document properties of Word (ie. title, subject, author, etc.)?
My userforms are set up so that the text in the textbox gets inserted in a bookmark within the document. In...
I need to write code that inserts a picture/logo (saved in autotext in
Word) into a bookmark in a Word template so that I can reference the
bookmark on the second page header. Normally when I insert text at a
bookmark I use code similar to this:
Set BMRange =...
I have created a program in Word97 that has several userforms that prompt the user for information. I do not want them to be able to close out of the forms, as it is mandatory that they select certain options. Is there a way to disable the Close (X) button on the top right corner of the userforms?
Whoa - I am fairly new to programming in VB and I don't know a ton about HTML, so I am a little confused about your code. Would I copy what you wrote exactly, or what parts do I need to change to meet my own needs?? Where in the code is the URL?? Normally when I look at code I can figure it...
Does anyone know if it is possible to write a macro that will connect you to a webpage. What I would like to do is create a toolbar button so that when the user clicks on the button, it will send them to a particular site on our intranet. Any suggestions?
I have a program created with about 5 different forms. At one point in one of the forms, I want to have a statement stating that If a checkbox on that form is checked, AND a certain checkbox on the previous form was checked, Then it will prompt the user for information. However, I am new to...
That helps a little bit. However, I am very new to programming and I do not know what you mean by "set bFlag somewhere in this code". How do I set it? Also, I have one module that has a Sub that has various forms loading in a particular order. From that point, there is different...
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.