vba - Excel: simple macro to paste as text returns error 1004: Could not run the paste method of worksheet class -
when try copy text application cell in excel 2010 (win 7 64bits) using macro:
activesheet.pastespecial format:="text", link:=false, displayasicon:=false
i error: error 1004 not run paste method of worksheet class
looks line works fine else , similar questions on here none of answers works me
any idea? thanks
format
parameter .pastespecial
method seems sensitive application national/language settings. if run english version of excel call method way (as in question):
activesheet.pastespecial format:="text", link:=false, displayasicon:=false
i'm running polish version of excel , line above gives me error 1004. changing 'text' polish 'tekst' solve problem:
activesheet.pastespecial format:="tekst", link:=false, displayasicon:=false
if of doesn't know how solve similar problem best option record (with macro recorder) simple paste special
operation.
Comments
Post a Comment