Hi
Thanks to the help I was able to built a code that retreives the worksheet name in column 5, now I was looking -but I din't find - a way to have the Indirect funtion to point the sheet name and in addition to retrieve the last cell with data in a specific column (that changes based on the worksheet).
Any assistance will be more than welcome
The code I have is this one
Thanks to the help I was able to built a code that retreives the worksheet name in column 5, now I was looking -but I din't find - a way to have the Indirect funtion to point the sheet name and in addition to retrieve the last cell with data in a specific column (that changes based on the worksheet).
Any assistance will be more than welcome
The code I have is this one
Code:
Sub Summary()
Dim wks As Worksheet
ultl = Sheets("Control").Cells(1048576, 4).End(xlUp).Row
i = 31
For Each wks In Worksheets(Array("Emergencias Bancomer", "Emergencias Banamex", "Emergencias Cheques", _
"Rentas Transfer", "Rentas Cheques", "Indemnizaciones", "Indemnizaciones Cheque", "Banamex Automaticos", _
"Cheques", "Bancomer", "Cajas", "Anticipos Empleados", "USD", "EUR", "Secretarias", "Luz", "Agua"))
If wks.Visible Then
Sheets("Control").Cells(i, 5) = wks.Name
Sheets("Control").Cells(i, 6) = ' Application.Worksheetfuntion.Indirect (cells(i, 5) & last active cell of column x from the visible workshet
i = i + 1
End If
Next wks
End Sub