![]() there is no space between the function name and the following open parenthesis.there are no spaces in the variable name (userName) or the function name (InputBox).UserName = InputBox("Please input your name.") The code to ask a user to enter their name, and then output the result in cell A1 of the active Excel worksheet is as follows: Sub inputBo圎xample() You have to output the results of the variable in your macro or your document.You have to fill the variable by asking for user input, or performing some type of calculation.Step 3: Run this code and you’ll see a pdf file generated under This PC > Documents. ![]() Step 2: Now, use the following code to save this file as a PDF file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |