Could you helpe me to implement this function with vba compiler, I get an error in line 7:
Function DeterminaRango(ByVal rgCelda As Range, ByVal intTipo As Integer) As Range
End Function
Function DeterminaRango(ByVal rgCelda As Range, ByVal intTipo As Integer) As Range
Code:
'0 Determina el rango con encabezados
'1 Determina el rango sin encabezados
Dim rgDatos As Range
Set rgDatos = rgCelda.CurrentRegion
If intTipo = 1 Then
Set rgDatos = rgDatos.Offset(1).Resize(rgDatos.Rows.Count - 1)
End If
Set DeterminaRango = rgDatos
