Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
After I call a Print Macro I have made. How do I not have a Print Preview
come up? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Greetings!!
Please try Range("B" & m & ":G" & n).select Jacob (If this post helps please hit Yes) |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print & Close Buttons in Print Preview grayed-out when '07 script | Excel Programming | |||
Print and Print Preview Graphic Moving Resizing 2007/2003 | Excel Discussion (Misc queries) | |||
print preview v page break preview | Excel Discussion (Misc queries) | |||
cell borders that I create dont show on print preview or print | Excel Discussion (Misc queries) | |||
Why does macro speed slow after Excel Print or Print Preview? | Excel Programming |