+ Reply to Thread
Results 1 to 3 of 3

Need VBA code to select entire content of word document - excel related

  1. #1
    Registered User
    Join Date
    03-27-2012
    Location
    Crawley
    MS-Off Ver
    Excel 2010
    Posts
    27

    Need VBA code to select entire content of word document - excel related

    Hi all,

    I currently have the following code that copies a range of cells from Excel and pastes into a new blank word document.

    I then need the contents of the word document to be copied, but all the methods that I've found via googling (Selection.Wholestory etc..) don't seem to work.

    How can I make it select and then copy the contents of the word doc?

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need VBA code to select entire content of word document - excel related

    I dont know much about cross-application programming, but i can help you shorten your code .

    In place of the above code, try this -
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Need VBA code to select entire content of word document - excel related

    Selecting for what purpose ?(avoid select/activate in VBA !)

    Please Login or Register  to view this content.








    End Sub



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1