EXCEL
Solved/Closed
milan
-
May 11, 2010 at 02:31 AM
rizvisa1 Posts 4479 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 13, 2010 at 11:24 AM
rizvisa1 Posts 4479 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 13, 2010 at 11:24 AM
2 replies
rizvisa1
Posts
4479
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
767
May 11, 2010 at 09:04 AM
May 11, 2010 at 09:04 AM
Could you please upload a sample file with sample data etc on some shared site like https://authentification.site and post back here the link to allow better understanding of how it is now and how you foresee.
rizvisa1
Posts
4479
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
767
May 13, 2010 at 11:24 AM
May 13, 2010 at 11:24 AM
Try this
Sub PrintBatch() Dim lMaxRows As Long lMaxRows = Sheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row For SLIP = 2 To lMaxRows Sheets("Sheet2").Select Cells(1, "J") = Sheets("Sheet1").Cells(SLIP, "A").Value DoEvents ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)" DoEvents Next SLIP End Sub
May 12, 2010 at 08:32 AM
May 12, 2010 at 09:06 AM
May 12, 2010 at 11:47 PM
Sheet 2 E1 ,is my Base for pay slip. Vlookup base is sheet1