Excel
Closed
milan
-
May 13, 2010 at 03:09 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 13, 2010 at 11:59 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 13, 2010 at 11:59 AM
Related:
- Payslip.ccm/pay.com
- Excel marksheet - Guide
- Excel free download - Download - Spreadsheets
- Number to words in excel - Guide
- Kernel for excel - Download - Backup and recovery
- Excel date format dd.mm.yyyy - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
May 13, 2010 at 11:59 AM
May 13, 2010 at 11:59 AM
this should help
Sub PrintBatch2() Dim lMaxRows As Long Dim lMinRange As Long Dim lMaxRange As Long Dim vTemp As Variant lMaxRows = Sheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row myrange = InputBox("Enter the print range", "Range", "1 - 700") lMinRange = Left(myrange, InStr(1, myrange, "-") - 1) lMaxRange = Mid(myrange, InStr(1, myrange, "-") + 1) For SLIP = lMinRange To lMaxRange Sheets("Sheet2").Select vTemp = "" Cells(1, "J") = SLIP DoEvents ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)" DoEvents Next SLIP End Sub