Whatever type of input you ask for, the result needs to be stored in a variable so that the rest of your procedure can access it. Your procedure could then take that data and use it to work on the specified document. A better idea is to have your procedure prompt for the name and location of a document. You could insert the name and location of a Word document into the procedure (this is called hard-coding the data), but that's not very flexible if your procedure is capable of working with different documents. For example, you might have a procedure that adjusts various aspects of a Word document. However, you'll likely come across situations where you'll require some kind of custom input. Your VBA programs will usually be self-contained and run just fine on their own. ![]() ![]() Learn More Buy Storing User Input in a Variable
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |