• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Creates a single file with the number of sheets according list with the model and the name

Visor

Member
Dear forum friends I have an excel macro to connect with word, what it does is create based on the model originates INVITATION for each person's name and inside the name as the bookmark is placed a file.

What I would like you can help me is that a single file is created with the number of sheets according to the names on the list have the excel file and each sheet also have their respective name.

I know this is what you can do with correspondence, but what I require is it with macro code.

I appreciate your kind support to this

I upload the file to be seen
 

Attachments

  • Invitation.rar
    28.5 KB · Views: 0
In the case of Word macro is possible with this code:

Code:
Sub copiarypasarAlasigPag()
' Word Macro
    Selection.MoveDown Unit:=wdLine, Count:=15, Extend:=wdExtend
    Selection.Copy
    Selection.MoveDown Unit:=wdLine, Count:=1
    Selection.InsertBreak Type:=wdPageBreak
    Selection.PasteAndFormat (wdFormatOriginalFormatting)
End Sub

but how is possible to do from excel?
 
Other code in the case of the word,
Code:
Sub copiarypasarAlasigPag()
    'Selection.MoveDown Unit:=wdLine, Count:=15, Extend:=wdExtend
    Selection.WholeStory
    Selection.Copy
    Selection.MoveDown Unit:=wdLine, Count:=1
    Selection.InsertBreak Type:=wdPageBreak
    Selection.PasteAndFormat (wdFormatOriginalFormatting)
End Sub

but I need code from Excel

Please can you help me???
 
Back
Top