hi,
i am using below code to run the macro
Code
Sub ExcelToTallyAll()
Application.Goto Sheet15.Cells(4, 3)
ExcelToTally_V2
Application.Goto Sheet22.Cells(4, 3)
ExcelToTally_LV
Application.Goto Sheet23.Cells(4, 3)
ExcelToTally_F2
Application.Goto Sheet24.Cells(4, 9)
ExcelToTally_L2
End Sub
Display More
in above code what i want to change are
check sheet15 is hide then unhide them
check sheet22 is hide then unhide them
check sheet23 is hide then unhide them
check sheet24 is hide then unhide them
like below
Code
Sub ExcelToTallyAll()Worksheets("Sheet15").Visible = True
Application.Goto Sheet15.Cells(4, 3)
ExcelToTally_V2
Worksheets("Sheet22").Visible = True
Application.Goto Sheet22.Cells(4, 3)
ExcelToTally_LV
Worksheets("Sheet23").Visible = True
Application.Goto Sheet23.Cells(4, 3)
ExcelToTally_F2
Worksheets("Sheet24").Visible = True
Application.Goto Sheet24.Cells(4, 9)
ExcelToTally_L2
End Sub
Display More
thanx in advance