Professional Documents
Culture Documents
Excel VBA
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