Humbled
07-15-2008, 10:33 AM
Advance apologies on such a basic question, but until I strip myself away from the keyboard and hit the bookstore (or maybe Amazon) for a VBA reference guide, I'm stuck. Along those lines, any suggestions for a good beginner's guide to VBA? Tons of coding experience, just nothing recent (all mainframe-based).
My predicament: I have a Word document that uses form fields (from the Forms toolbar, I'm not going to try and tackle UserForms this week).
Each field has been assigned a bookmark name. I'm having trouble extracting the value of the field to use throughout the remainder of the macro.
Yesterday - with the help of this board - I learned I can extract a text field using:
Dim Store as String
Store = ActiveDocument.Bookmarks("PHCY").Range.Text
I can't find anything that makes sense for a date field. The field in question has a bookmark name = "dtUAT", and is formatted to display as "DDD, M/d/yy". I've tried the same as above (.range.text), as well as (.range.select) plus a few others with no success.
I chose my username ("Humbled") with good reason, thanks for your help. Maybe one day I'll be able to help out around here.
My predicament: I have a Word document that uses form fields (from the Forms toolbar, I'm not going to try and tackle UserForms this week).
Each field has been assigned a bookmark name. I'm having trouble extracting the value of the field to use throughout the remainder of the macro.
Yesterday - with the help of this board - I learned I can extract a text field using:
Dim Store as String
Store = ActiveDocument.Bookmarks("PHCY").Range.Text
I can't find anything that makes sense for a date field. The field in question has a bookmark name = "dtUAT", and is formatted to display as "DDD, M/d/yy". I've tried the same as above (.range.text), as well as (.range.select) plus a few others with no success.
I chose my username ("Humbled") with good reason, thanks for your help. Maybe one day I'll be able to help out around here.