I have a sheet called "main" that takes values from another file’s sheet called "data".
With "ActiveSheet.copy" (in the "main" file) it copies the sheet but with the cells’ links.
Is there any way to copy just the values of the sheet?
Second, my "main" sheet has some merged cells so even if I manually copy & paste the sheets by selecting a range it can’t be copied due to the merged cells.
Check out the options you get with
PasteSpecial:Example – suppose you want to copy sheet1 to sheet 2 where sheet 1 has merged cells
CTRL + Ato select all and thenCTRL + Cto copyPaste Special...All except borders...Updated – VBA
Paste:=xlPasteAllExceptBordersis the key bit. You need to change this if you want to just copy values (and not links)