Ghesselink
New Member
- Joined
- Jun 7, 2018
- Messages
- 20
Hello,
I made a button to run the following via code on another sheet (the sheet where the button is in another one called 'input'). However, when I run the code it does only seem to affect the 'Input' sheet.
I do not see what goes wrong, anyone has an idea?
Thanks in advance,
I made a button to run the following via code on another sheet (the sheet where the button is in another one called 'input'). However, when I run the code it does only seem to affect the 'Input' sheet.
I do not see what goes wrong, anyone has an idea?
Thanks in advance,
PHP:
Sub Extend()
'
' Extend Macro
'
With Worksheets("Output1")
Range("B2").AutoFill Destination:=Range("B2").Resize(Range("Input!G8").End(xlDown).Row - 1)
Range("A2").AutoFill Destination:=Range("A2").Resize(Range("Input!G8").End(xlDown).Row - 1)
Range("E2").AutoFill Destination:=Range("E2").Resize(Range("Input!G8").End(xlDown).Row - 1)
Range("F2").AutoFill Destination:=Range("F2").Resize(Range("Input!G8").End(xlDown).Row - 1)
Range("G2").AutoFill Destination:=Range("G2").Resize(Range("Input!G8").End(xlDown).Row - 1)
Range("H2").AutoFill Destination:=Range("H2").Resize(Range("Input!G8").End(xlDown).Row - 1)
Range("I2").AutoFill Destination:=Range("I2").Resize(Range("Input!G8").End(xlDown).Row - 1)
End With
End Sub