Paste Special

rhombus4

Well-known Member
Joined
May 26, 2010
Messages
586
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have a formula in Cell A1 which relates to some code, however because it is a formula the code doesnt run, however If I type the answer in cell A1 the code works.

What I need is for the answer in cell A1 to appear in a different cell e.g. B1 but just appear as the value and not the formula i.e. =A1 then i can change my code to look for B1
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
If you are inquiring with regards to VBA then like this:

Code:
Range("A1").Copy
Range("B1").PasteSpecial xlPasteValues
 
Upvote 0
You can use a Calculate event:

Private Sub Worksheet_Calculate()
Range("B1").Value = Range("A1").Value
End Sub


HTH,
 
Upvote 0
If you are inquiring with regards to VBA then like this:

Code:
Range("A1").Copy
Range("B1").PasteSpecial xlPasteValues

but how would i enter that in vba so when the formula is entered in A1 the result would appea in B1 automatically
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,547
Members
452,925
Latest member
duyvmex

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