Gringoire
Board Regular
- Joined
- Nov 18, 2016
- Messages
- 71
- Office Version
- 365
- Platform
- Windows
Hello guys,
I have to programmatically copy and paste some ranges (sheet rows) from an Excel file to another Excel file.
During the Copy & Paste procedure, the code stops and Excel asks for choosing if maintain the old reference or use the new one for the cells having the same name in both files.
I must avoid that the routine stops waiting for User input and force it to always choose the new reference, but I have no idea on how to proceed.
do you have some hints?
The code is a simple
Thank you.
I have to programmatically copy and paste some ranges (sheet rows) from an Excel file to another Excel file.
During the Copy & Paste procedure, the code stops and Excel asks for choosing if maintain the old reference or use the new one for the cells having the same name in both files.
I must avoid that the routine stops waiting for User input and force it to always choose the new reference, but I have no idea on how to proceed.
do you have some hints?
The code is a simple
VBA Code:
Selection.Insert Shift:=xlDown
Thank you.