Littlemalky
Board Regular
- Joined
- Jan 14, 2011
- Messages
- 223
Is there any way to copy all cells and paste destination over all cells in another location so that it replaces whatever was there before and removes the old. For example, something like:
Workbooks("Example.xlsx").Worksheets("Example").Cells.Copy Destination:=Workbooks("Example1.xlsx").Worksheets("Example1").Cells
This never works for me because I believe it wants me to specify a range more specificly, but if i didn't want to clear the page of "Example1.xlsx" before I pasted something in there, is there an easy way to just paste over what was there replacing the contents if the amount of rows/columns differ. I know how to do it line by line, but I want to write it more efficiently.
Workbooks("Example.xlsx").Worksheets("Example").Cells.Copy Destination:=Workbooks("Example1.xlsx").Worksheets("Example1").Cells
This never works for me because I believe it wants me to specify a range more specificly, but if i didn't want to clear the page of "Example1.xlsx" before I pasted something in there, is there an easy way to just paste over what was there replacing the contents if the amount of rows/columns differ. I know how to do it line by line, but I want to write it more efficiently.