VBA Macros Copying Value not formula

lisacon7

New Member
Joined
May 30, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to copy from one sheet to another but when I do the red text below contains a formula and brings that across instead. I have tried Paste Special but can't seem to get it to work does anyone have any help please?

'Copy and paste data from the Highlight Report worksheet to the Highlight Database worksheet
ReportDate.Copy DestCell
OFProjectNumber.Copy DestCell.Offset(0, 1)
OFProjectTitle.Copy DestCell.Offset(0, 2)
Progress.Copy DestCell.Offset(0, 3)
Budget.Copy DestCell.Offset(0, 4)
Scope.Copy DestCell.Offset(0, 5)
Resource.Copy DestCell.Offset(0, 6)
ProjectUpdate.Copy DestCell.Offset(0, 7)
NextSteps.Copy DestCell.Offset(0, 8)
Decisions.Copy DestCell.Offset(0, 9)
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Am no VBA expert, so there may be a better way but this works, base something on this
A1 =3
B1=4
C1=A1+B1

Code:
Sub k1()
Set destcell = Range("D1")
Range("C1").Copy
With destcell.Offset(0, 1)
.PasteSpecial xlPasteValuesAndNumberFormats
End With
End Sub

Result is E1 = 7 (value not formula)
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,617
Latest member
Narendra Babu D

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