try this

Sub exportToWord()

    Dim SheetName As String, NumLines As Integer
    Dim WordApp As Object
    Set WordApp = CreateObject("Word.Application")
    WordApp.Visible = True
    Worksheets(SheetName).Range("frontcover").Copy
    'you can replace the next line of code with
===>WordApp.Documents.Add.Content.Paste
    WordApp.Documents.Add.Content.PasteSpecial DataType:=wdPasteText
    Application.CutCopyMode = False
    Set WordApp = Nothing

End Sub

On Wed, Oct 17, 2012 at 4:51 PM, ashish koul <koul.ash...@gmail.com> wrote:

>  [image: Boxbe] <https://www.boxbe.com/overview> This message is eligible
> for Automatic Cleanup! (koul.ash...@gmail.com) Add cleanup 
> rule<https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Ftoken%3D1Eu7LU51oYt3KtXPYavHaynYSZUy7JVV4ZpReesSxZlEgly%252Fm2wSGhUH1%252Fq%252Bwt%252BkcDEfa9n76XSgcT3QoX0HsUSIeFdNTXbBQ2KvPt6BKiYGSd%252BWoi4FTw4LM3yy%252FQkEhIX%252FzD5Am0KA3EeB8qfl9Q%253D%253D%26key%3DWqT68GLv6HyYbB6OsucL3KfUmH758zRbTJ8J07b7ivs%253D&tc=12685767925_65271407>|
>  More
> info<http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc=12685767925_65271407>
>
> share excel file and word document
>
> or visit
>
> http://www.excelvbamacros.com/2011/11/find-row-and-column-number-of.html
>
> http://www.excelvbamacros.com/2011/10/copy-range-from-excel-and-paste-as.html
>
>
>
> On Wed, Oct 17, 2012 at 10:07 AM, amar takale <amartak...@gmail.com>wrote:
>
>> Pls help me for this solution
>>
>>
>> On Tue, Oct 16, 2012 at 5:26 PM, amar takale <amartak...@gmail.com>wrote:
>>
>>> *Hi All Champs*
>>> Can anybody tell me how to copy paste excel table in word as it with
>>> formatting.So I want to VBA code for that then I will create button & only
>>> click it So table automatically copy paste in word.For other sheet in code
>>> I will change only range of table as per data size table & click button.
>>>
>>> please help me to solve this question
>>> waiting your response
>>>
>>> Amar
>>>
>>>
>>  --
>> Join official facebook page of this forum @
>> https://www.facebook.com/discussexcel
>>
>> FORUM RULES (1120+ members already BANNED for violation)
>>
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will not get quick attention or may not be answered.
>>
>> 2) Don't post a question in the thread of another member.
>>
>> 3) Don't post questions regarding breaking or bypassing any security
>> measure.
>>
>> 4) Acknowledge the responses you receive, good or bad.
>>
>> 5) Cross-promotion of, or links to, forums competitive to this forum in
>> signatures are prohibited.
>>
>> 6) Jobs posting is not allowed.
>>
>> 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
>>
>> NOTE : Don't ever post personal or confidential data in a workbook. Forum
>> owners and members are not responsible for any loss.
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "MS EXCEL AND VBA MACROS" group.
>> To post to this group, send email to excel-macros@googlegroups.com.
>> To unsubscribe from this group, send email to
>> excel-macros+unsubscr...@googlegroups.com.
>>
>>
>>
>
>
>
> --
> *Regards*
> * *
> *Ashish Koul*
>
>
> *Visit*
> *http://www.excelvbamacros.com/*
> *http://www.accessvbamacros.com/*
>
> P Before printing, think about the environment.
>
>
>
>  --
> Join official facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES (1120+ members already BANNED for violation)
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
>
> 2) Don't post a question in the thread of another member.
>
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
>
> 4) Acknowledge the responses you receive, good or bad.
>
> 5) Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> 6) Jobs posting is not allowed.
>
> 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
>
> NOTE : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To post to this group, send email to excel-macros@googlegroups.com.
> To unsubscribe from this group, send email to
> excel-macros+unsubscr...@googlegroups.com.
>
>
>
>

-- 
Join official facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES (1120+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

6) Jobs posting is not allowed.

7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.


Reply via email to