Hi,
I am using below code in MSExcel VBO object to unhideAll rows and columns across all sheets in excel
For Each ws In GetWorkbook(handle,Nothing).Worksheets
ws.Activate
ws.Columns.EntireColumn.Hidden = False
ws.Rows.EntireRow.Hidden = False
Next ws.
the code is working fine when this particular page of code is placed in MSExcel VBO object. When I moved this to separate object and passed the handle to that object but it is throwing key not present in dictionary.
Where I am making mistake?
I am using below code in MSExcel VBO object to unhideAll rows and columns across all sheets in excel
For Each ws In GetWorkbook(handle,Nothing).Worksheets
ws.Activate
ws.Columns.EntireColumn.Hidden = False
ws.Rows.EntireRow.Hidden = False
Next ws.
the code is working fine when this particular page of code is placed in MSExcel VBO object. When I moved this to separate object and passed the handle to that object but it is throwing key not present in dictionary.
Where I am making mistake?