Copy cell Value ( not formula )

Tetranychus

New Member
Joined
Sep 21, 2014
Messages
2
Hi all,


I just need help to get this right.
When i copy the macro copy all ( including formulas ) and what i want is just to copy the values.
Can any one help?


Sub Gerar()

Range("B28:AR29").Select
Selection.Copy
Sheets("testettt").Select
Range("B22:AR23").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.EntireRow.Insert , CopyOrigin:=xlFormatFromLeftOrAbove
Sheets("Dados Pessoais + Exper. Prof").Select
Range("A3").Select

End Sub


Tks and Best Regards
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Sub Gerar()

Sheets("testettt").Range("B22:AR23").Value = Range("B28:AR29").Value
Sheets("Dados Pessoais + Exper. Prof").Select
Range("A3").Select

End Sub
 
Upvote 0
Tks a lot ttdk1 :D helped a lot :D

but the final code was:

Sub gerar()


Sheets("testettt").Range("B22:AR23").Value = Range("B28:AR29").Value
Sheets("Dados Pessoais + Exper. Prof").Select
Range("A3").Select
Sheets("testettt").Select
Range("B22:AR23").Select
Application.CutCopyMode = False
Selection.EntireRow.Insert , CopyOrigin:=xlFormatFromLeftOrAbove
Sheets("Dados Pessoais + Exper. Prof").Select
Range("A30").Select


End Sub
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,243
Members
448,555
Latest member
RobertJones1986

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