Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 356563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:07:25+00:00 2026-05-12T12:07:25+00:00

I want to print a Word document, mydocument.docx, from a button in an Excel

  • 0

I want to print a Word document, mydocument.docx, from a button in an Excel sheet. Both are in the same folder.

I don’t want users to see the Word document. They just click the button in Excel.

I can create a button in Excel and make it open an empty vb. This is as much as I know. If you can explain this in steps that would be so awesome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T12:07:25+00:00Added an answer on May 12, 2026 at 12:07 pm

    You can use the Word automation object model to gain programmatic access to Word.

    In almost all cases, you’d be following these steps:

    1. Create the Word application object.
    2. Open a document.
    3. Do something with the document.
    4. Close the document.
    5. Quit the Word application.

    Here is what the basic VBA code looks like:

    ' Step 1
    Dim objWord
    Set objWord = CreateObject("Word.Application")
    ' Hidden window!
    objWord.Visible = False
    ' Save the original printer, otherwise you will reset the system default!
    Dim previousPrinter
    Set previousPrinter = objWord.ActivePrinter
    objWord.ActivePrinter = "My Printer Name"
    
    ' Step 2
    Dim objDoc
    Set objDoc = objWord.Documents.Open("C:\Test\SomeDocument.docx")
    
    ' Step 3 -- in this case, print out the document without any prompts
    objDoc.PrintOut
    ' Restore the original printer
    objWord.ActivePrinter = previousPrinter
    
    ' Step 4
    objDoc.Close
    
    ' Step 5
    objWord.Quit
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make a case sensitive comparision like this: If ARGV[0].eql? /word/i print
I want to search each line for the word FAILED , then print the
I want to print the ID of the comment (eg. 10151828637085391_33268745 ) from this
I am trying to print pdf, ppt, and word documents from my windows service
I am using the MS Word COM API to print Word documents from C#.
I want to print next line of matching word with sed. I tried this
Foreword: I want to allow users to define high quality document templates and then
We use PDF-Focus. And we want to export PDF-documents in landscape-format to a Word-document.
I want to traverse through all the elements of an word document one by
I Want Print DataBase Schema in Microsoft Sql Server Compact Edition. Maybe Exist Some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.