- Mensajes: 330
- Gracias recibidas: 0
REGLAMENTO DE USO (31 Mar 2011)
Recordatorio a todos los usuarios de los foros:
5. Está prohibido transmitir a través de estos foros cualquier contenido (información, datos, gráficos, texto, archivos, ligas, software u otro material) que viole cualquier derecho de propiedad industrial o intelectual. Se requiere mencionar al autor y el medio de publicación cuando se haga una referencia editorial.
INPC, actualización automatica
- ByPaco
- Fuera de línea
- Moderator
-
ramiro9 escribió:
« Antes de que los reinos cambien, los hombres deberán cambiar »
Por favor, Conectar para unirse a la conversación.
- kikeleal
- Fuera de línea
- Administrator
-
tocayo, es un error provocado por el comando buscar (en algunas pc el argumento SearchFormat:=False provoca un error), bueno, sustituye todo lo rojo:
Cells.Find(What:="año", After:=ActiveCell, LookIn:=xlFormulas, LookAt:=
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,MatchCase:=False_
, SearchFormat:=False).Activate
por esto
Cells.Find(What:="año", After:=ActiveCell, LookIn:=xlFormulas).Activate
y dime si funciona
sigue sin funcinar:(
gracias
saludos!
La vida es el mejor regalo en vida que DIOS nos da!
Saludos!
Por favor, Conectar para unirse a la conversación.
- ByPaco
- Fuera de línea
- Moderator
-
- Mensajes: 330
- Gracias recibidas: 0
Sub Auto_open()
'Creada por Enrique Morales
Application.ScreenUpdating = False
[A1].QueryTable.Refresh BackgroundQuery:=False
[A2].EntireRow.Delete
[A1].End(xlDown).Select
ActiveCell.Offset(1, 0).Range("A1" ).EntireRow.Delete
ActiveCell.Offset(1, 0).Range("A1" ).EntireRow.Delete
Range([A1], ActiveCell.SpecialCells(xlLastCell)).AutoFormat _
Format:=xlRangeAutoFormatClassic3, Number:=True, Font _
:=True, Alignment:=True, Border:=True, Pattern:=True, Width:=True
Fn% = Range([A1].CurrentRegion.Address).Rows.Count
Range("B2:M" & Fn).NumberFormat = "0.0000"
[A1].End(xlDown).Select
Application.Goto Reference:="R[+2]C"
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).EntireRow.Delete
Rows("2:2" ).Select
ActiveWindow.FreezePanes = True
Application.ScreenUpdating = True
ActiveWorkbook.Names("inpc" ).Delete
Range([A1], ActiveCell.SpecialCells(xlLastCell)).Select
ActiveWorkbook.Names.Add Name:="inpc" , RefersToR1C1:=Selection
Range("A2" ).Select
MsgBox "Datos actualizados de www.aportacionesfiscales.com/content/view/16/31 ", vbExclamation, "INPC"
End Sub
Sub auto_close()
ActiveWorkbook.Save
End Sub
Espero y así te sirva
« Antes de que los reinos cambien, los hombres deberán cambiar »
Por favor, Conectar para unirse a la conversación.
- gasiste
- Fuera de línea
- Fresh Boarder
-
- Mensajes: 5
- Gracias recibidas: 0
Por favor, Conectar para unirse a la conversación.
- Alucard
- Fuera de línea
- Administrator
-
- Mensajes: 295
- Gracias recibidas: 0
Muchas gracias por el archivo, hoy aprendi algo nuevo gracias a ustedes colegas...
PD: a mi me abrio sin problemas y se actualizo igual, sin mayor contratiempo...
Por favor, Conectar para unirse a la conversación.
- estrella
- Fuera de línea
- Junior Boarder
-
- Mensajes: 25
- Gracias recibidas: 0
Por favor, Conectar para unirse a la conversación.