You are on page 1of 1

Excel VBA

L-3

ThisWorkbook.Sheets(“Sheet1”).Cells(2,5).value=”this is me”

ThisWorkbook.Sheets(“Sheet1”).Cells(2,5).value= ThisWorkbook.Sheets(Sheet1).Cells(1,5).value

ThisWorkbook.Sheets(“Sheet1”).Cells(2,5).value= ThisWorkbook.Sheets(Sheet1).Cells(1,5).value+1

L-4

Sub hideRows()

ThisWorkbook.Sheet(“Sheet1”).Rows(“2:2”).Hidden = True

End Sub

Sub showRows()

ThisWorkbook.Sheet(“Sheet1”).Rows(“2:2”).Hidden = False

End Sub

We can do the same things for the collum also

You might also like