LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Automate Word via Excel

All,

Been trying to do this for a while with no luck. Maybe someone has run into
this before??

In Word, I have a cell within a table.

I populate it via Excel with:
Set wordRange = wordDoc.GoTo(What:=-1, Name:="line2")
wordRange.InsertAfter BodyTB2
Set wordRange = wordDoc.GoTo(What:=-1, Name:="line2A")
wordRange.InsertAfter "ABC"

The above works well, but what I'm trying to accomplish is to have
"only" the "ABC" underlined. Within that cell in Word, if I set the
second bookmark as "Underlined", it won't hold the underlined
setting. Whatever the first bookmark setting is takes priority for
the whole cell.

I've tried multiple bookmarks, insert before and after the bookmark,
all sorts of formats, etc. and can't get it to work. I can't split the cell
(which would work) because I need the "ABC" to follow directly
after the the initial text that's placed in that cell.

Any ideas on how to accomplish this???

Thanks,
John



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automate: Excel cell to Word? Graham Mayor Excel Discussion (Misc queries) 1 March 8th 09 03:36 PM
Automate: Excel cell to Word? Graham Mayor Links and Linking in Excel 1 March 8th 09 03:36 PM
Automate a formula in excel Farris Excel Discussion (Misc queries) 6 August 9th 07 11:18 PM
Automate new Word file and insert autotext leaftye Excel Discussion (Misc queries) 2 November 7th 06 06:21 PM
Automate Excel from VS.NET Aaron[_12_] Excel Programming 3 February 17th 04 04:13 AM


All times are GMT +1. The time now is 03:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"