Hi
What are my options for getting info from the user which will be used as part of the header?
1. I can use the userform
2. Form field. Two problems here.
(a) Unable to input info in the formfield - don't know why.
(b) I loaded one of my old document which had form fields in it and I am able to input the information.
3. What else?
User info and displayed in header
-
- 5StarLounger
- Posts: 656
- Joined: 18 Feb 2010, 14:26
User info and displayed in header
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 78790
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: User info and displayed in header
I'd use a userform with text boxes and/or combo boxes. In the OK button of the userform, you can set the value of document variables or of custom document properties. In the document (whether in the header/footer or in the body), you can use DocVariable or DocProperty fields to display their values.
See Post 15936 for an example.
See Post 15936 for an example.
Best wishes,
Hans
Hans
-
- 5StarLounger
- Posts: 656
- Joined: 18 Feb 2010, 14:26
Re: User info and displayed in header
Thanks Hans. Is that the only real option, i.e. userform? I have done userform before so that is not the problem. My manager wants something inline if possible, i.e. click on a field and add the necessary info.HansV wrote:I'd use a userform with text boxes and/or combo boxes. In the OK button of the userform, you can set the value of document variables or of custom document properties. In the document (whether in the header/footer or in the body), you can use DocVariable or DocProperty fields to display their values.
See Post 15936 for an example.
What about macrobutton? Is that any good - never used them before nor know much about them.
-
- Administrator
- Posts: 78790
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: User info and displayed in header
A macrobutton field lets the user run a macro from within the document. The field code looks like this:
{ MACROBUTTON MyMacro Double-click here }
The user will see the text Double-click here. When the user double-clicks the text, the macro MyMacro is run.
Advantage is that it's inline. Disadvantage is that it's inline - the display text will be printed with the document unless you format it as hidden, but then you'd have to instruct the users to show hidden text on the screen...
{ MACROBUTTON MyMacro Double-click here }
The user will see the text Double-click here. When the user double-clicks the text, the macro MyMacro is run.
Advantage is that it's inline. Disadvantage is that it's inline - the display text will be printed with the document unless you format it as hidden, but then you'd have to instruct the users to show hidden text on the screen...
Best wishes,
Hans
Hans
-
- 5StarLounger
- Posts: 656
- Joined: 18 Feb 2010, 14:26
Re: User info and displayed in header
Thanks Hans. Userform looks the best option at the moment. I will go with that.HansV wrote:A macrobutton field lets the user run a macro from within the document. The field code looks like this:
{ MACROBUTTON MyMacro Double-click here }
The user will see the text Double-click here. When the user double-clicks the text, the macro MyMacro is run.
Advantage is that it's inline. Disadvantage is that it's inline - the display text will be printed with the document unless you format it as hidden, but then you'd have to instruct the users to show hidden text on the screen...