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"...
with no offense intended, please try and use terms properly. much easier to figure out what is happening.
1. "forms is not locked, it allows changes to the template"
bad statement. A template should NEVER, EVER, be changed by a user. A template should NEVER, EVER, be even opened by a user...
do u not need to convert the binary 2 text? i know for getting graphics stored as byte arrays in Access fields, data is pulled out, set a temp file (txt - even though it is graphics file data as byte array); then opened/inserted into Word as a renamed file. also i think, you may nedto use...
no. if hyperlink is in a locked section, it is locked. note that it is SECTIONS that r locked, NOT document...unless whole document has all sections locked.
may b alternative dependng on what u need, what ur design requires. may b activex controls, not form fields, maybe use of bookmark...
no need to go through Notepad. Word has a style - ClearFormatting - that strips formats. Just Ctrl-A to select all, then apply ClearFormatting. All styles are reverted to Normal, with NO manual formating. You can ten attach your new template. Or best of all, clearformat everything, then...
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.