Hi
I'm having trouble using PasteSpecial in a macro:
InportStart is a cell I've named on the sheet "Sorter". I copy a table from an external database and then run a macro to paste it into the correct place in my workbook.
When I've recorded the macro it works fine because it Selects the various cells I do and does every little action (the macro records me using "Application.Goto Reference:="ImportStart"" and it does the paste with no problem) - but I don't really want the macro to "Select" the cell because I don't want the user to lose his place when he runs the macro.
Any ideas why i can't pastespecial using the above code?
(I'm using Excel 2003)
Thanks
I'm having trouble using PasteSpecial in a macro:
I get an "Application-defined or Object-defined error" message.Sheets("Sorter").Range("ImportStart").PasteSpecial Format:="Text"
InportStart is a cell I've named on the sheet "Sorter". I copy a table from an external database and then run a macro to paste it into the correct place in my workbook.
When I've recorded the macro it works fine because it Selects the various cells I do and does every little action (the macro records me using "Application.Goto Reference:="ImportStart"" and it does the paste with no problem) - but I don't really want the macro to "Select" the cell because I don't want the user to lose his place when he runs the macro.
Any ideas why i can't pastespecial using the above code?
(I'm using Excel 2003)
Thanks
Last edited: