Copy Values, not formulas

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

Below is a cut from my TransformData macro (I'm switching a user-friendly table into a pivot-table friendly list

'Copy the data for planned to column
Sheets("Inventory").Selec
Range(ThisCol & "2:" & ThisCol & FinalRow).Copy
Destination:=Sheets("PivotlistaTarget").Range("G" & NextRow
Sheets("Pivotlista").Selec

The problem is that this returns the formulas, I would like it to return only the values. (It is a very big list and it is very time consuming to add $-signs in the entire Inventory-list)
 
Hi
have a look at the pastespecial method in the VBA help or
record a macro while doing this manually to see the syntax
of this method
-----Original Message-----
Hello,

Below is a cut from my TransformData macro (I'm switching
a user-friendly table into a pivot-table friendly list)
'Copy the data for planned to column F
Sheets("Inventory").Select
Range(ThisCol & "2:" & ThisCol & FinalRow).Copy _
Destination:=Sheets("PivotlistaTarget").Range("G" & NextRow)
Sheets("Pivotlista").Select

The problem is that this returns the formulas, I would
like it to return only the values. (It is a very big list
and it is very time consuming to add $-signs in the entire
Inventory-list)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top