Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-09-2018, 12:19 AM
Zhibek Zhibek is offline Print only specified pages of word by 1 click of command button using vba Windows 10 Print only specified pages of word by 1 click of command button using vba Office 2013
Advanced Beginner
Print only specified pages of word by 1 click of command button using vba
 
Join Date: Aug 2018
Location: Almaty, Kazakhstan
Posts: 30
Zhibek is on a distinguished road
Default Print only specified pages of word by 1 click of command button using vba

Hello



How to Print only specified pages of word by 1 click of command button using vba
Reply With Quote
  #2  
Old 08-09-2018, 01:37 AM
gmayor's Avatar
gmayor gmayor is offline Print only specified pages of word by 1 click of command button using vba Windows 10 Print only specified pages of word by 1 click of command button using vba Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

How would you specify the pages with only one click? You are going to have to be more specific about what you want to achieve,
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 08-09-2018, 01:41 AM
Zhibek Zhibek is offline Print only specified pages of word by 1 click of command button using vba Windows 10 Print only specified pages of word by 1 click of command button using vba Office 2013
Advanced Beginner
Print only specified pages of word by 1 click of command button using vba
 
Join Date: Aug 2018
Location: Almaty, Kazakhstan
Posts: 30
Zhibek is on a distinguished road
Default

Why do you so hate me??

ok, for example I want to print only current page?
How should I write macros where I already need to write file location and connect it to specify printer
Reply With Quote
  #4  
Old 08-09-2018, 03:13 AM
gmayor's Avatar
gmayor gmayor is offline Print only specified pages of word by 1 click of command button using vba Windows 10 Print only specified pages of word by 1 click of command button using vba Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

I don't have any feelings for you whatsoever - what makes you think I hate you?

I have answered most of your questions that are answerable. I simply don't answer questions in personal messages. If I am going to take the time to answer questions I prefer that anyone who visits the forum may get the benefit of the information - and perhaps visit my web site.

Some, like this one, required more information. Maybe http://www.gmayor.com/fax_from_word.htm will help as it has several print examples.

To print the current page
Code:
Sub PrintPage()
    Application.PrintOut Range:=wdPrintCurrentPage
lbl_Exit:
    Exit Sub
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com

Last edited by gmayor; 08-09-2018 at 07:21 AM.
Reply With Quote
  #5  
Old 08-12-2018, 09:20 PM
Zhibek Zhibek is offline Print only specified pages of word by 1 click of command button using vba Windows 10 Print only specified pages of word by 1 click of command button using vba Office 2013
Advanced Beginner
Print only specified pages of word by 1 click of command button using vba
 
Join Date: Aug 2018
Location: Almaty, Kazakhstan
Posts: 30
Zhibek is on a distinguished road
Default

Thank you for the answer!
Reply With Quote
  #6  
Old 08-12-2018, 10:06 PM
macropod's Avatar
macropod macropod is offline Print only specified pages of word by 1 click of command button using vba Windows 7 64bit Print only specified pages of word by 1 click of command button using vba Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Zhibek View Post
Why do you so hate me??
I suggest you learn some manners. Unfounded accusations of this kind won't endear you to anyone...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 08-12-2018, 10:43 PM
Zhibek Zhibek is offline Print only specified pages of word by 1 click of command button using vba Windows 10 Print only specified pages of word by 1 click of command button using vba Office 2013
Advanced Beginner
Print only specified pages of word by 1 click of command button using vba
 
Join Date: Aug 2018
Location: Almaty, Kazakhstan
Posts: 30
Zhibek is on a distinguished road
Default

I just said Thank you...
Reply With Quote
  #8  
Old 08-12-2018, 11:37 PM
macropod's Avatar
macropod macropod is offline Print only specified pages of word by 1 click of command button using vba Windows 7 64bit Print only specified pages of word by 1 click of command button using vba Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Thanking someone for something they've done for you after you have made unfounded accusations does not excuse the accusations.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 08-12-2018, 11:42 PM
Zhibek Zhibek is offline Print only specified pages of word by 1 click of command button using vba Windows 10 Print only specified pages of word by 1 click of command button using vba Office 2013
Advanced Beginner
Print only specified pages of word by 1 click of command button using vba
 
Join Date: Aug 2018
Location: Almaty, Kazakhstan
Posts: 30
Zhibek is on a distinguished road
Talking

Quote:
Originally Posted by macropod View Post
Thanking someone for something they've done for you after you have made unfounded accusations does not excuse the accusations.
aaaaa I already forgot about it
Reply With Quote
  #10  
Old 08-12-2018, 11:44 PM
Zhibek Zhibek is offline Print only specified pages of word by 1 click of command button using vba Windows 10 Print only specified pages of word by 1 click of command button using vba Office 2013
Advanced Beginner
Print only specified pages of word by 1 click of command button using vba
 
Join Date: Aug 2018
Location: Almaty, Kazakhstan
Posts: 30
Zhibek is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
I don't have any feelings for you whatsoever - what makes you think I hate you?
Dear, gmayor!
I am sorry for may bad manners. I will try to improve it.
And thank you for the answer!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
save document in shairpoint by one command button click using the vba Zhibek Word VBA 1 08-10-2018 12:31 AM
Print only specified pages of word by 1 click of command button using vba Button within Word to print certain pages hotcomper Word 1 08-10-2015 11:36 PM
ActiveX Command Button disappears after click Bengt Word VBA 1 09-18-2013 12:42 PM
Print only specified pages of word by 1 click of command button using vba Command Button to Print Labels Claytocb Excel Programming 1 02-01-2013 12:20 AM
Word doc bug when closing from userform command button click macro Joe Patrick Word 1 07-05-2011 08:53 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft