[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Print word document table to take up the whole page Word 2010

Posted on 2011-05-12
9
Medium Priority
?
341 Views
Last Modified: 2012-06-27
I have word 2010 and i have a table but i want it to print to take up all of the paper and leave no empty spacing like a border. The whole page.
0
Comment
Question by:IATA-techops
  • 5
  • 3
9 Comments
 
LVL 10

Expert Comment

by:GlobaLevel
ID: 35749459
This may work for you:
http://www.vbaexpress.com/kb/getarticle.php?kb_id=182

Sub PrintCurr()
     
    Application.PrintOut FileName:="", Range:=wdPrintCurrentPage
     
End Sub
 
                  
 
How to use:
 
Copy the code above.
Open Word.
Hit Alt+F11 to open the Visual Basic Editor (VBE).
On the left, double-click "normal" or "normal.dot".
Then, under normal.dot, double-click ThisDocument.
Paste the code into the window that appears at right.
Hit the save diskette and close the VBE window.
Add a toolbar button, using Tools-Customize, that runs the macro. Put it up next to your printer toolbar button if you use it a lot.
   
0
 

Author Comment

by:IATA-techops
ID: 35749541
Is this supposed to start the text and the table all the way ontop of the paper? I ran it and it did not
0
 

Author Comment

by:IATA-techops
ID: 35749595
I have an already existing document that has the margins the way they should be how can i see exactly how tha tone is and then set those options to the other document?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 10

Assisted Solution

by:GlobaLevel
GlobaLevel earned 1000 total points
ID: 35749649
I havent tried this..you will have to modify for yours:
Public Function RunWordMacroOrSub()

'Check Tools/Reference Microsoft Word Object Library
'declare variables
Dim wdApp As Word.Application
Dim wdDoc As Word.Document

'Word application stuff
Set wdApp = New Word.Application
wdApp.Visible = False
Set wdDoc = wdApp.Documents.Open("C:\Documents and Settings\hannes\Desktop\Blah Blah Blah.doc")

Dim table_var As Object

table_var = table1.Table
'wdDoc.PrintOut Copies:=1
wdDoc.Print table_var

'done
wdApp.Quit
Set wdDoc = Nothing
Set wdApp = Nothing

End Function
0
 

Author Comment

by:IATA-techops
ID: 35750367
There has to be a margin setting or a fit to page option i just cant find them or the correct settings. I just want to print the page using the whole page.
0
 
LVL 33

Assisted Solution

by:Paul Sauvé
Paul Sauvé earned 1000 total points
ID: 35754173
Is this what you're looking for? Margins
0
 
LVL 10

Expert Comment

by:GlobaLevel
ID: 35754217
Thanks Paul...   For your comment, my impression is that he had soothing custom...
0
 

Accepted Solution

by:
IATA-techops earned 0 total points
ID: 35770805
Thank you.
0
 

Author Closing Comment

by:IATA-techops
ID: 35807031
Good work.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you ever need to create a 20 page Word document for some testing purpose? Are you tired of copying & pasting old boring "lorem ipsum" text over and over again, increasing font size and line space in order to make the document 20+ pages long? Look…
Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
Suggested Courses

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question