ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Print Code (https://www.excelbanter.com/excel-discussion-misc-queries/203587-print-code.html)

aftamath77

Print Code
 
I was checking on an excel workbook that was forwarded to me, and I saw this
code for a macro tied to a userform within a worksheet. I didn't know what
the userform was for.

ActiveWindow.SmallScroll Down:=-51
Range("A84:H143").Select
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,1,,,TRUE,,FALSE)"

I don't recognize the syntax for the print command. I do see that there
must be a bunch of default values selected.

Could someone please explain what the final line means and explain the syntax.

Bob Umlas[_2_]

Print Code
 
If you right-click the sheet tab, select Insert, then choose MS Excel 4
Macro, then type in a cell
=Print
and while the cell is still active, press ctrl/shift/A and you'll see:

=print(range_num,from,to,copies,draft,preview,prin t_what,color,feed,quality,y_resolution,selection,p rinter_text,print_to_file,collate)


"aftamath77" wrote in message
...
I was checking on an excel workbook that was forwarded to me, and I saw
this
code for a macro tied to a userform within a worksheet. I didn't know
what
the userform was for.

ActiveWindow.SmallScroll Down:=-51
Range("A84:H143").Select
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,1,,,TRUE,,FALSE)"

I don't recognize the syntax for the print command. I do see that there
must be a bunch of default values selected.

Could someone please explain what the final line means and explain the
syntax.




aftamath77

Print Code
 


"Bob Umlas" wrote:

If you right-click the sheet tab, select Insert, then choose MS Excel 4
Macro, then type in a cell
=Print
and while the cell is still active, press ctrl/shift/A and you'll see:

=print(range_num,from,to,copies,draft,preview,prin t_what,color,feed,quality,y_resolution,selection,p rinter_text,print_to_file,collate)


"aftamath77" wrote in message
...
I was checking on an excel workbook that was forwarded to me, and I saw
this
code for a macro tied to a userform within a worksheet. I didn't know
what
the userform was for.

ActiveWindow.SmallScroll Down:=-51
Range("A84:H143").Select
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,1,,,TRUE,,FALSE)"

I don't recognize the syntax for the print command. I do see that there
must be a bunch of default values selected.

Could someone please explain what the final line means and explain the
syntax.





aftamath77

Print Code
 


"aftamath77" wrote:



"Bob Umlas" wrote:

If you right-click the sheet tab, select Insert, then choose MS Excel 4
Macro, then type in a cell
=Print
and while the cell is still active, press ctrl/shift/A and you'll see:

=print(range_num,from,to,copies,draft,preview,prin t_what,color,feed,quality,y_resolution,selection,p rinter_text,print_to_file,collate)


"aftamath77" wrote in message
...
I was checking on an excel workbook that was forwarded to me, and I saw
this
code for a macro tied to a userform within a worksheet. I didn't know
what
the userform was for.

ActiveWindow.SmallScroll Down:=-51
Range("A84:H143").Select
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,1,,,TRUE,,FALSE)"

I don't recognize the syntax for the print command. I do see that there
must be a bunch of default values selected.

Could someone please explain what the final line means and explain the
syntax.






All times are GMT +1. The time now is 09:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com