Hey Skip and PHV, thank you so much for the tips.... it's working and getting the information into the content control.
Is it at all possible to have each line come in as a separate line and not concatenated in a single line?
All of you have made my day so far!
Brent
Thanks Skip,
It seems logical to what you are suggesting. I tried it in the word document and I get an error stating "Compile error: Method or data member not found" and it is highlighting .Value in:
dim r as range, sTextForDoc as string
for each r in...
Hi Combo,
No I don't need the formulas, I just want the text from the cells (I have 6 in question; A1:A6).
I still think I need an array but I am not sure how to do that at this point.
Still working on it. Thanks for the tip.
B
I am trying to import a range of cells from Excel to a Word content control. Currently I can import a single cell using the following:
dataInExcel = workBook.Worksheets("Sheet1").Range("A1").Formula
As soon as I change "A1" to "A1:A6", it stops working. Is there another convention that I should...
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.