Private Sub Contar_Grupos()
Dim ToTaL As Integer
Dim CoDigoX As Integer
Set exlobj = New Excel.Application
Set exlobj = CreateObject("excel.application") ' Initialize the excel object
Set objsheet = exlobj.ActiveSheet
exlobj.Workbooks.Open (App.Path + "\MEP\MINICIALX.xls")
exlobj.Visible = True
Worksheets(4).Activate
' exlobj.Workbooks.Add
With exlobj.ActiveSheet
Total = .Cells(26, 7).Value
.Cells(26, 7).Font.Size = 14
End With
end Sub.
Con esto espero poder contestar a tu duda, cualquier cosa, solo escribeme a
[email protected], con gusto te ayudare por cualquier cosa