Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 03-11-2009, 11:20 AM
Phonic Phonic is offline
Registered User
 
Join Date: 15 Nov 2007
Posts: 11
Phonic is becoming part of the community
Operating Word from Excel

Please Register to Remove these Ads

Hi,

I would like to:
1. find a name (in my case a fund name) from an array in excel,
2. open a specific word doc,
3. find the fund name,
4. copy a couple of paragraphs under it, and
5. paste into a powerpoint document.

I'm running my VB code in excel. I've done 1, 2 and 3 (partially)

Here is what I have so far for the 4th point

Code:
    WordApp.Activate
      With WordApp.ActiveDocument.Content.Duplicate
        .Find.Execute Findtext:="FundA"
        .Copy
        .Font.Italic = True
    End With
but it only finds the fund name and selects that. Is there anyway I can do some kind of offset for word??

Thanks in advance!

S M
Reply With Quote
  #2  
Old 04-09-2009, 10:23 AM
Phonic Phonic is offline
Registered User
 
Join Date: 15 Nov 2007
Posts: 11
Phonic is becoming part of the community
Re: Operating Word from Excel

any ideas anyone?
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Forum Jump