Fortisdragon
Technical User
Hi everyone!
I've got another problem in excel vba (Excel 97)...
I want to (simply!) paste data from one sheet to another one in the same workbook. The famous so-called "HelpFile" show me this code for the "paste special format" function:
<expression.PasteSpecial(Paste, Operation, SkipBlanks, Transpose)
Paste Optional Variant. The part of the range to be pasted. Can be one of the following XlPasteType constants: xlPasteAll, xlPasteFormulas, xlPasteValues, xlPasteFormats, xlPasteNotes, or xlPasteAllExceptBorders. The default value is xlPasteAll.
Transpose Optional Variant. True to transpose rows and columns when the range is pasted.The default value is False.>
...and I wrote the underlying lines to just test the "past values" method...
<Worksheets("parameters".Range("k2".Copy
Worksheets("simulation".Range("h" & iBeginW).PasteSpecial (xlPasteValues)>
... and it works pretty well!
But when I want to transpose the values the code should be the following:
<Worksheets("parameters".Range("k2".Copy
Worksheets("simulation".Range("h" & iBeginW).PasteSpecial (xlPasteValues, , ,True)>
... and the answer is: "Compile Error Expected: =" and make my linecode invalid!
I can't find any answer in the so-called "Help File"... so some help will be appreciated
Fortisdragon
I've got another problem in excel vba (Excel 97)...
I want to (simply!) paste data from one sheet to another one in the same workbook. The famous so-called "HelpFile" show me this code for the "paste special format" function:
<expression.PasteSpecial(Paste, Operation, SkipBlanks, Transpose)
Paste Optional Variant. The part of the range to be pasted. Can be one of the following XlPasteType constants: xlPasteAll, xlPasteFormulas, xlPasteValues, xlPasteFormats, xlPasteNotes, or xlPasteAllExceptBorders. The default value is xlPasteAll.
Transpose Optional Variant. True to transpose rows and columns when the range is pasted.The default value is False.>
...and I wrote the underlying lines to just test the "past values" method...
<Worksheets("parameters".Range("k2".Copy
Worksheets("simulation".Range("h" & iBeginW).PasteSpecial (xlPasteValues)>
... and it works pretty well!
But when I want to transpose the values the code should be the following:
<Worksheets("parameters".Range("k2".Copy
Worksheets("simulation".Range("h" & iBeginW).PasteSpecial (xlPasteValues, , ,True)>
... and the answer is: "Compile Error Expected: =" and make my linecode invalid!
I can't find any answer in the so-called "Help File"... so some help will be appreciated
Fortisdragon