+ Reply to Thread
Results 1 to 2 of 2

VBA code to merge text file in a word document and print all the letters automatically

  1. #1
    Registered User
    Join Date
    10-13-2008
    Location
    Bristol
    Posts
    19

    VBA code to merge text file in a word document and print all the letters automatically

    Hi guys

    I want to write code in Excel/VBA so that when print button is pressed then it merges the word document using data from a text file(Notepad file) and prints all the letters automatically. The following code doesn't work and gives command failed error. I hope anyone can help me in this.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    10-13-2008
    Location
    Bristol
    Posts
    19

    Re: VBA code to merge text file in a word document and print all the letters automatically

    Hi Guys

    Can anyone please help me in this? I used the following code in another project that will merge the records from Access table in word document and print the letters off. But how can I change it in a way so that the code will merge records from a text file in a word document? I hope anyone can help me in this/
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Print off the word document using excel vba code
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2013, 09:42 AM
  2. How to merge cells in Word document by VBA code??
    By SiriS in forum Excel General
    Replies: 0
    Last Post: 05-04-2006, 07:03 AM
  3. [SOLVED] transfer data to fill a word document to print (automatically)
    By snaggy^^ in forum Excel General
    Replies: 0
    Last Post: 01-19-2006, 01:10 PM
  4. Replies: 0
    Last Post: 11-03-2005, 08:10 AM
  5. mail merge-word file automatically closing
    By vishu in forum Excel General
    Replies: 3
    Last Post: 10-24-2005, 12:05 PM

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