Computer Aided Automation

Full Version: Print some Cells in Excel - VBA Code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sample VBA Code to print some cells (change the cell number in the code)


Sub PrintSomeCells()
Sheets("Costing").Rows("18:71").EntireRow.Hidden = True
Range("D1:H100").PrintPreview
Sheets("Costing").Rows("18:71").EntireRow.Hidden = False
End Sub