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

After I call a Print Macro I have made. How do I not have a Print Preview
come up?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Print Preview

Worksheets(1).PrintOut Preview:=False
Also, see...
http://support.microsoft.com/KB/555375
"How to Ask a Question"
--
Jim Cone
Portland, Oregon USA



"Philosophaie"

wrote in message
After I call a Print Macro I have made.
How do I not have a Print Preview come up?
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Print Preview

I am also having trouble with ranges. I need to select a range based on a
subroutine calculating a variable row numbers. I eventually want something
like this:

Range("B2:G21").select

for a print. B2 & G21 needs to be inputed a variable range from a string:

rangestart = "B" & m
rangeend = "G" & n
(where m & n are integers)

This is what I have so far. Any other methods are welcomed!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Print Preview

Greetings!!

Please try Range("B" & m & ":G" & n).select


Jacob (If this post helps please hit Yes)
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Print Preview


Tryed:

Range("B" & m & ":G" & n).select

Error code is "Method 'Range' of object'_Worksheet' failed"

and

Range("B" & m :"G" & n).select

The error code says Compile error: "Expected: list separator or )".

M and n are integers.


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Print Preview

This is correct......

Range("B" & m & ":G" & n).select

Your error suggests that either the worksheet or range you are trying to
select is protected, and you are not specifying the worksheet so VBA is
assuming it is the current active worksheet, is that what you want?

--

Regards,
Nigel




"Philosophaie" wrote in message
...

Tryed:

Range("B" & m & ":G" & n).select

Error code is "Method 'Range' of object'_Worksheet' failed"

and

Range("B" & m :"G" & n).select

The error code says Compile error: "Expected: list separator or )".

M and n are integers.


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Print Preview

Range("B" & m & ":G" & n).select

That worked. Now I would like to know how to print to an external printer
the range I created. How do I do that?
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Print Preview

Start a new thread and be clear what you are asking.

Try taking a look here to phrase questions that will get a polite answer....

http://support.microsoft.com/KB/555375
--

Regards,
Nigel




"Philosophaie" wrote in message
...
Range("B" & m & ":G" & n).select

That worked. Now I would like to know how to print to an external printer
the range I created. How do I do that?


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
Print & Close Buttons in Print Preview grayed-out when '07 script ArielZusya Excel Programming 2 January 16th 09 05:57 PM
Print and Print Preview Graphic Moving Resizing 2007/2003 Adam Rayburn Excel Discussion (Misc queries) 0 April 4th 07 04:18 PM
print preview v page break preview SamB Excel Discussion (Misc queries) 0 November 16th 06 05:09 PM
cell borders that I create dont show on print preview or print scott3435 Excel Discussion (Misc queries) 2 April 6th 06 02:37 AM
Why does macro speed slow after Excel Print or Print Preview? Larry A[_3_] Excel Programming 6 May 16th 05 11:22 AM


All times are GMT +1. The time now is 12:12 AM.

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"