Using text variables in Microsoft Word

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ค. 2024
  • A tour through fields, bookmarks, and document properties in Microsoft Word.
    Learn three different ways to create a "text variable", which means you can type some text in one place and have other bits of text update to match the changes.
    Check out my blog at DrNatJG.com

ความคิดเห็น • 83

  • @livronuvem
    @livronuvem 7 ปีที่แล้ว +28

    Thanks. Elegantly explained and illustrated. MS could make this functionality a lot more straightforward, and I'm surprised they haven't after 25+ years.

    • @Fidrafunk
      @Fidrafunk 4 ปีที่แล้ว

      yes i thought a text variable would be a standard piece of functionality by now

  • @kevinsteptoe
    @kevinsteptoe 4 ปีที่แล้ว

    This is precisely what I need. You quickly get to the important points and leave us with a comprehensive explanation of the approaches and then direct us to the elegent and preferred solution. Thank you.

  • @mikeecklund1851
    @mikeecklund1851 6 ปีที่แล้ว +3

    I just wanted to thank you for taking the time to make such a detailed video with multiple approaches to accomplishing the same task. Method #3 is ideal. This helped me tremendously for managing software documentation. Thanks again.

  • @awesomeaartvark
    @awesomeaartvark 6 ปีที่แล้ว +1

    This is exactly what I was looking for! You made this very easy to understand, thank you!

  • @monireachtang712
    @monireachtang712 3 ปีที่แล้ว

    This is absolutely awesome!!
    Thank you Dr. for sharing!

  • @OliviaSantiagoOn2
    @OliviaSantiagoOn2 4 ปีที่แล้ว

    I needed this yesterday!! So excited to go to work and update my doc!!

  • @ArnoldNewton
    @ArnoldNewton ปีที่แล้ว

    Thanks for creating this video. Definitely a niche topic but not many people has figured this out!

  • @rush883
    @rush883 2 ปีที่แล้ว

    just recently found your channel and I'd say even though it's dated, it was very well explained, thank you!

  • @RaviKiranChaliki
    @RaviKiranChaliki 4 ปีที่แล้ว

    Excellent solution. Something that is bothering me for a couple of days. Every Elegant with your flow. Thank you.

  • @miticaresidencial145
    @miticaresidencial145 5 ปีที่แล้ว +1

    Thank you so much!! been looking for this solucion for such a long time

  • @SaidElnaffar
    @SaidElnaffar 5 ปีที่แล้ว

    You deserve a LIKE and SUBSCRIBE!
    Very tricky, useful, and comprehensive!

  • @thisxgreatxdecay
    @thisxgreatxdecay 2 หลายเดือนก่อน

    I love how the simplest method is last, haha. But thanks! This helped me make sure that I don't leave the wrong company name in my cover letters. And I'm sure it will come in handy for all sorts of things!

  • @robertmcnulty6596
    @robertmcnulty6596 4 ปีที่แล้ว +2

    I was trying to figure out how to do this a long time ago and didn't succeed. It seemed like a pretty obvious thing that one would want to do, but there was no obvious method. This is very cool. Also, my compliments to Dr. Nat JG for his skills as a teacher. He shows three ways of achieving the same thing that goes from simplest to most complicated. Each approach builds on the previous one and so the third one is the best and ultimately simples if one wants to have a document that will be used on multiple occasions in which this property appears, but it might be intimidating if he just showed method #3.

    • @DrNatJG
      @DrNatJG  4 ปีที่แล้ว

      Thanks

  • @lotfymercedes
    @lotfymercedes 4 ปีที่แล้ว

    This magnificent. Thank you for sharing knowledge. You saved me alot of time

  • @kapilvora
    @kapilvora 4 ปีที่แล้ว

    Great! A very nice way to save so much time! Thanks a Lot!

  • @richardbryanesq
    @richardbryanesq 4 ปีที่แล้ว

    Thank you for taking the time to make this very helpful video.

  • @shadowrunesword
    @shadowrunesword 2 ปีที่แล้ว

    Thanks for the tutorial. This is helping me make short work of cover letters as I seek a job. Cheers.

  • @MalinaC
    @MalinaC 5 ปีที่แล้ว

    Thank you, extremly useful!

  • @JPinToronto
    @JPinToronto 5 ปีที่แล้ว +1

    I'm really enjoying this video. Please make more content!

  • @MisterFizz
    @MisterFizz 5 ปีที่แล้ว

    Nicely done. Thanks for the post.

  • @JackMachiela
    @JackMachiela ปีที่แล้ว

    Thanks was a great help. Using method 3 was the one for me.

  • @kreech68
    @kreech68 2 ปีที่แล้ว

    Well-described - thank you very much!

  • @malchicken
    @malchicken 4 ปีที่แล้ว

    Very helpful! Thank you very much!

  • @dietrickthomas8106
    @dietrickthomas8106 6 ปีที่แล้ว

    Thank you for this!

  • @littlenewton6
    @littlenewton6 4 ปีที่แล้ว

    非常感谢您的视频,我感到很有启发性!

  • @elyana_
    @elyana_ ปีที่แล้ว

    Very clear - thank you!

  • @wmickinley
    @wmickinley 6 หลายเดือนก่อน

    one of the best of all time

  • @gergelypal354
    @gergelypal354 4 ปีที่แล้ว

    Thanks a lot. To summarize more solution is the best base of this video.

  • @saikhunkhay3617
    @saikhunkhay3617 2 ปีที่แล้ว

    Thanks for your time. So useful for me.

  • @Fidrafunk
    @Fidrafunk 4 ปีที่แล้ว +1

    These days you can do this pretty straightforwardly with inserting a bookmark with highlighted text, and then inserting a cross-reference to that bookmark. The key thing is its the text inside the bookmark brackets, not the bookmark name (from bookmark creation), that gets used for the cross-reference text.

  • @NozmoKing
    @NozmoKing 4 หลายเดือนก่อน

    THANK YOU!!!!

  • @danpantazi9149
    @danpantazi9149 2 ปีที่แล้ว

    great video!

  • @sucramsucram3558
    @sucramsucram3558 3 ปีที่แล้ว

    Thank you!

  • @vebe7109
    @vebe7109 3 ปีที่แล้ว

    Great video!

  • @emartin1990
    @emartin1990 7 ปีที่แล้ว +2

    Thank you jesus

  • @JulioMeza
    @JulioMeza 4 ปีที่แล้ว

    That was good. Thanks

  • @taketheredpill1452
    @taketheredpill1452 5 ปีที่แล้ว

    great teaching

  • @FrozenHero2010
    @FrozenHero2010 3 ปีที่แล้ว +1

    Thank you for this tuition. One small thing I was unable to do was to view the document properties bar at the top of the page. I follwed the instructions, File > Info > Properties, but I only have one option (Advanced Options) whereas in the video, there is also Show Document Properties. I am using Word 2019.

  • @LoveToRock1313
    @LoveToRock1313 5 ปีที่แล้ว

    Great video! Do you happen to know where to find the definition of named DocVariable fields in Word?

  • @skyacaniadev2229
    @skyacaniadev2229 5 ปีที่แล้ว +2

    Hope they add something like "/" drop menu, so I don't have to click 10 times to insert a field.

  • @neillmack
    @neillmack 6 ปีที่แล้ว +1

    Excellent video - thank you.
    Tried to incorporate the document panel but guess what, the help desk says, "The Document Information Panel has been removed in Office 2016 applications." :-(

  • @manishmadhavan587
    @manishmadhavan587 ปีที่แล้ว

    wonderful

  • @livronuvem
    @livronuvem 7 ปีที่แล้ว +2

    4:27 for method 3

  • @mannuposki10
    @mannuposki10 4 ปีที่แล้ว

    Can we drive all this through Word Add-in APIs? I wanted to create a content control using the Word API instead of manually clicking the options you showed. Is it possible?

  • @cnfnbcn3227
    @cnfnbcn3227 2 ปีที่แล้ว

    No idea if its still actual, but you can get rid of the problem of method two by doing so:
    In options, go to Customize Ribbon and under the Main Tabs enable Developer
    Then select text that you wish to bookmark, and in Developer tab, in Controls, find Plain Text Content Control and click it
    Now you basically have a text field. Click on 3 dots on top left of it and then perform all the same things:
    add bookmark and so on

  • @rileyo578
    @rileyo578 4 ปีที่แล้ว

    Can this function be used for a other applications like a company logo throughout headers & footers

  • @veronicakonig8643
    @veronicakonig8643 3 ปีที่แล้ว

    Hi! I would like to know how to use merge field from a drop down list. That is, a different text appears from an option chosen by the user. Thank you very much!.

  • @rpprevost
    @rpprevost 2 ปีที่แล้ว

    If film makers ever do a remake of "2001: A Space Odyssey," you should do the voice of HAL.

  • @jrb040892
    @jrb040892 ปีที่แล้ว

    At the end you said there is an advanced method to put a content control box around custom variables. Can you point me towards how to do this?

  • @m.n.953
    @m.n.953 2 ปีที่แล้ว

    thanks for nice explanation. I have a question pleas : in MS word 2019, if I need to add a command button inside the word FORM or template, THIS TEMPLATE HASE SOME FIELDS TO FILL IN the fields are all in type plain text content controls. I want to write a code for the command button that save the document as the content of “student name” field (plain text content control), and to save it into a specific bath directory, how can I write the code pleas ? can you drop the line code that do this when I click in this command button.? pleas your answer and thank you in advance. (PS I don’t want to print the command button in paper when I print out the document . can I make the command button unprinted?)

  • @Popart-xh2fd
    @Popart-xh2fd 5 ปีที่แล้ว

    Hi, nice video. Is it possible to insert fields inside fields and this way update links for instance. Thanks.

  • @BCFroude
    @BCFroude 4 ปีที่แล้ว

    Thanks for the video. I followed through three times and my bookmark is not working properly. It doesn't update the fields after saving and updating. It brings it back to the first initial value from the field code....

  • @jedrzejleopold2743
    @jedrzejleopold2743 4 ปีที่แล้ว

    How about linking together several documents, or downloading specific informations from one, source document to the other? I can't find any sollution for that.

  • @mnapier2210
    @mnapier2210 7 ปีที่แล้ว +1

    If my variable is in a Drop Down (Combo Box Content Control or Drop Down Content Control) and I want to choose the information once and for it to automatically change all the other drop downs, how do I set that up?

  • @fabiomarques4110
    @fabiomarques4110 5 ปีที่แล้ว +1

    Hello, on method two, I'm having some trouble. the update field only works after I open and close the properties window. is there a way to refresh the values without opening this panel? thanks for the great video and detailed explanation.

    • @6guame
      @6guame 5 ปีที่แล้ว +2

      same problem

    • @DrNatJG
      @DrNatJG  4 ปีที่แล้ว

      It's possible Microsoft made some changes and more recent versions of Word are acting differently.

  • @SteS
    @SteS 5 ปีที่แล้ว +1

    In 2019 the 2nd method doesn't work. Selecting the field saving and pressing F9 doesn't work. You need to go to the prop dialog and redo the Field link.

  • @farhandeen6341
    @farhandeen6341 2 ปีที่แล้ว

    Which office version are you using

  • @steveremich7255
    @steveremich7255 2 ปีที่แล้ว

    Thanks for making this video, but it doesn't appear to work (Word for Mac, 2019). Custom fields don't update after updating the bookmarked text.

  • @markmedalla2509
    @markmedalla2509 3 ปีที่แล้ว

    Can you do superscript/subscript inside the field?

  • @dingviet4310
    @dingviet4310 3 ปีที่แล้ว

    Please help! Step 2 isn't working for me. I need to go back into advanced properties to make the field update to the master field. Pressing F9 alone won't work!

  • @CristobalRuiz
    @CristobalRuiz 3 ปีที่แล้ว

    What if the content isn't necessarily related to the document properties? I create templates for technical specifications that have several fields that need to be updated and are inserted across multiple section of the document. I have thought about using "Bookmarks" but these are not "editable, are they?

    • @MrThesavage78
      @MrThesavage78 3 ปีที่แล้ว

      Bookmarks can only be used once in one location, well techincally they can be used multiple times howere it's really cumbersome. Use variables instead. Search for "Using a Form in MS Word to Populate a Document" in youtube (not association, just the video I used and make the following changes:
      In Microsoft Word, use Insert>Quick Parts>Field>DocVariable> Type variable name in Field Properties>New Name.
      The code for the "OKBut_Click" in VBA changes to (my sheet was titled "KPIInfo", change to reflect your sheet):
      Private Sub OKbut_Click()
      For Each Control In KPIInfo.Controls
      If Control.Tag "" Then
      ActiveDocument.Variables(Control.Tag).Value = Control.Value
      End If
      Next

      Me.Repaint
      ActiveDocument.Fields.Update
      KPIInfo.Hide

      End Sub
      To enable editing of the variables after a new document has been created firstly create a new module, rename it "Edit_Doc" or similar and use the following code:
      Sub Edit_Doc()
      For Each Control In KPIInfo.Controls
      If Control.Tag "" Then
      Control.Value = ActiveDocument.Variables(Control.Tag).Value
      End If
      Next
      KPIInfo.Show
      End Sub
      This enables editing of the variables after a new document has been created by clicking on Develop>Macros"Edit_Doc">then press the "Run" button.
      Back in VBA window, under "Forms" update the Properties>Tags for each data entry box according to the corresponding variable.
      This is so much simpler and versatile! I was assisted writing the code by a guy who's a gun with Python so I can only answer basic questions.

  • @mehmetbaran9742
    @mehmetbaran9742 5 ปีที่แล้ว

    can we add more default variables for the method 3?

    • @DrNatJG
      @DrNatJG  4 ปีที่แล้ว

      To my understanding, no you can't - also you can't change the name of those properties. That's the main limitation =(

  • @dimaagkoshot4648
    @dimaagkoshot4648 ปีที่แล้ว

    You are God

  • @J_L22
    @J_L22 2 ปีที่แล้ว +1

    The fact that the functionality of the third method is not this straightforward with custom properties is ridiculous

  • @alvaromorales6828
    @alvaromorales6828 3 ปีที่แล้ว

    sort of literate programming

  • @jmooch59
    @jmooch59 4 ปีที่แล้ว

    Hilarious!

  • @f0ru0l0rd
    @f0ru0l0rd 4 ปีที่แล้ว

    Show Document Panel is now gone.
    Now it's no longer as intuitive as before. Every time you want a change you have to go backstage again and again.
    It's frustrating to say the least!

  • @hulladek3
    @hulladek3 4 ปีที่แล้ว

    This is what you want th-cam.com/video/OtFhIqK0gec/w-d-xo.html

  • @michaelpearce3662
    @michaelpearce3662 4 ปีที่แล้ว

    You need to have an degree in computer programming to use word these days ...ridiculuous

  • @SteS
    @SteS 5 ปีที่แล้ว +1

    In 2019 the 2nd method doesn't work. Selecting the field saving and pressing F9 doesn't work. You need to go to the prop dialog and redo the Field link.

    • @DrNatJG
      @DrNatJG  4 ปีที่แล้ว

      Thanks, it's been an awful long time since I've looked into this stuff.

  • @origami_canoe1952
    @origami_canoe1952 4 ปีที่แล้ว

    In Method 1, how can I create a Document Property that is able to be used in EVERY new document that I create?

    • @DrNatJG
      @DrNatJG  4 ปีที่แล้ว

      What if you make those changes then do a "Save As"... save the document as a template in .dotx format? Open that template next time and all your custom properties/field codes should be set up for you.