Last active
April 20, 2017 14:51
-
-
Save jovib/11e61706148674882eac5951cd8b0b9a to your computer and use it in GitHub Desktop.
Carga valores de SQL en diferentes hojas de excel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sub update() | |
| Application.ScreenUpdating = False | |
| Prompt = "Por favor tenga paciencia, este programa tomará algunos minutos..." | |
| Title = "Actualizar" | |
| Style = vbOKCancel | |
| Respond = MsgBox(Prompt, Style, Title) | |
| If Respond = vbCancel Then Exit Sub | |
| ''Mostrador es el nombre la hoja de excel, A1 la celda | |
| Sheets("Mostrador").Select | |
| Range("A1").Select | |
| Selection.QueryTable.Refresh BackgroundQuery:=False | |
| End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment