kinda agree w/ misscrf.
pos alternative, bring in .txt, create table w/ VBA w/ col num = num of text ranges seperate by tabs; THEN
grab text (w/out tab) & insert in cell
ignore tab
insert next text in next cell
assume is linefeed in .txt - at linefeed make
new table row...
it is simple. There r TWO types drop down available IN a Word doc ( as opposed to drop downs on a UserForm, that is, a form generated by VBA).
Form Field drop downs REQUIRE protection. Sorry, but that how they work. purpose of form fields is 2 lock documents for rapid data entry. Users ONLY...
then again, pls explain. still trying 2 get HOW u r working this.
"header name is passed to a function" - huh? where header name from? & what u mean by "header name"?
see if understand. u have a listbox. there r items in list. user selects item. selected item then.....reads from ini file...
use .Result property of the formfields, and concatenate them. could do directly, or make string variables of them.
strResultText1 = ActiveDocument.FormFields("Text1").Result
strResultText2 = ActiveDocument.FormFields("Text2").Result
ActiveDocument.FormFields("Text3").Result = strResultText1 &...
again, i ask for explanation of HOW u r doing this.
there must b some mechanism to grab the choice. if i know the mechanism then easy to have preview.
the control would simply be a Label on form. whatever is the content that WILL BE inserted, is simply displayed into the Caption property of...
pls clarify u r requirements again.
1. listbox? this is activex listbox IN the document? listbox box on UserForm?
2. r text portion in Word doc? if so, any particular reason use this rather than AutoText? Altho, can certainly think of reason myself - keeps entries in one location.
3. how...
what u mean "bookmarked field"? if form field (which shows as bookmarks), can set format of form field by setting a Type:Number, and Number Format as %.
Sub BoldEachFirstWord()
Dim aPara As Paragraph
Dim aRange As Range
For Each aPara In ActiveDocument.Paragraphs
Set aRange = aPara.Range
aRange.Words(1).Bold = True
Set aRange = Nothing
Next
End Sub
use range not selection object. make every first word bold.
also make stupid "blank"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.