Hi All,
As in the title I am trying to be able to paste a row using VBA. Normally this wouldn't pose me a problem but I have come across a slight problem I'm hoping someone can help me with.
User opens up a different spreadsheet. This can be from a file they have saved, or from an email attachment. They select a row that contains data thay want to paste into my spreadsheet. Run a code and it does it for them. This is where my problem lies:
If the user has opened the file they are copying the data from, from their desktop, the paste option is:
However, if the user has opened the file as an email attachment the above code does not work (as the file is in protected view), so the following code can be used:
The only code that works universally is :
but when I use that it pastes from the data as is with all linked references from the cells etc, which I don't want. An easy solution would be to tell them to make sure they open it as 'enable editing' but the people using it need this as simple as possible.
Any help greatly appreciated
John
Bookmarks