Coping Cell Values

boydr

Board Regular
Joined
Apr 17, 2002
Messages
157
I'm using the following in a macro script to copy the value of one cell to a new worksheet. Does anyone know how I can copy the value of the cell so that when the source cell has a formula it won't copy the formula, but will copy the value only?

Sheets(CurrSheet).Range("A4").Copy Destination:=Sheets(NewSheet).Range("A4")
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi boydr,

try this
Code:
Sheets(CurrSheet).Range("A4").Copy 
Sheets(NewSheet).Range("A4").PasteSpecial Paste:=xlValues

Marc
 
Upvote 0
Also...

Sheets("NewSheet").Range("A4").value = _
Sheets("CurrSheet").Range("A4").value

Tom
 
Upvote 0
Thanks for the help, but I can't get it to work. I know I'm leaving something out, but not sure what. This is what I tried:

Sheets("NewSheet").Range("I4").Value Destination:=Sheets("CurrSheet").Range("B2").Value
 
Upvote 0
Record a macro
and select the cell
then copy
Then select the cell that you want to paste
then paste special and have the options that paste just the value

which this will do the same as paelinck code
whihc should work
 
Upvote 0
Tried that too, but it didn't work. I pasted in this:

Sheets(CurrSheet).Range("I6").Select
Selection.Copy
Sheets(NewSheet).Range("B6").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False

But I get the error: "Select method of Range class failed" message.
This message was edited by boydr on 2002-04-20 15:54
 
Upvote 0
Actually, Tom, you're suggestion worked after I tried it again today. Not sure what I was doing yesterday, but thanks for your help and everyone elses.
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,519
Members
448,968
Latest member
Ajax40

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top