Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print Refedit range?


I have a Refedit range box in one of my yserforms and under it a
commandbutton...when i select a range making use of the Refedit box it
works fine but the moment i click the commandbutton it does not print
the selected range..it prints a blank page...i need some advice on the
coding to print the selected range

Thanks
Theuns


--
T.c.Goosen1977
------------------------------------------------------------------------
T.c.Goosen1977's Profile: http://www.excelforum.com/member.php...o&userid=35895
View this thread: http://www.excelforum.com/showthread...hreadid=558880

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print Refedit range?


Hello,

Seet the print area to the RefEdit range before printing out the
worksheet.

With Worksheets("Sheet1")
..PageSetup.PrintArea = "$A$1:$C$5"
..PrintOut
..PageSetup.PrintArea = ""
End With

Change Sheet1 to match the name of the Worksheet the range is part of.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=558880

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print Refedit range?


yes, that is part of my problem: setting the printing range to the
selected refedit range....the refedit is on a userform and it works
fine when i select the range...but when i click the printing
commandbutton i...it prints blank...so how do i assign the refedit
range to the printing command button?


--
T.c.Goosen1977
------------------------------------------------------------------------
T.c.Goosen1977's Profile: http://www.excelforum.com/member.php...o&userid=35895
View this thread: http://www.excelforum.com/showthread...hreadid=558880

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print Refedit range?


Got it right...thanks guys



With Range(RefEdit1)
..PrintOut Copies:=1, Collate:=True
End With


--
T.c.Goosen1977
------------------------------------------------------------------------
T.c.Goosen1977's Profile: http://www.excelforum.com/member.php...o&userid=35895
View this thread: http://www.excelforum.com/showthread...hreadid=558880

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
passing range from RefEdit control Greg Excel Programming 1 April 25th 06 04:51 AM
RefEdit - get range from another workbook pbengtss Excel Programming 4 September 18th 04 02:42 AM
Get user selected range into RefEdit J. Hall Excel Programming 2 April 9th 04 05:05 PM
RefEdit - cannot select range on another workbook Rob Excel Programming 1 November 26th 03 07:48 PM


All times are GMT +1. The time now is 03:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"