'Excel-VBA/Paginas copieren.vba' toevoegen
This commit is contained in:
parent
9e141a4aad
commit
bcd8e3c5d0
1 changed files with 17 additions and 0 deletions
17
Excel-VBA/Paginas copieren.vba
Normal file
17
Excel-VBA/Paginas copieren.vba
Normal file
|
@ -0,0 +1,17 @@
|
|||
Sub Copysheet()
|
||||
Dim i As Integer
|
||||
Dim p As Integer
|
||||
On Error GoTo out
|
||||
i = InputBox("Hoeveel?", "Making Copies")
|
||||
Application.ScreenUpdating = False
|
||||
p = 0
|
||||
Do
|
||||
ActiveSheet.Copy After:=Sheets(Sheets.Count)
|
||||
p = p + 1
|
||||
Loop Until p = i
|
||||
Application.ScreenUpdating = True
|
||||
Exit Sub
|
||||
out:
|
||||
MsgBox "geanuleerd"
|
||||
Application.ScreenUpdating = True
|
||||
End Sub
|
Loading…
Reference in a new issue