VinceF
Board Regular
- Joined
- Sep 22, 2007
- Messages
- 206
- Office Version
- 2016
- Platform
- Windows
Greeting Experts,
This code works perfectly when the result of the formula in the cell results in a number. However after a modification I have 1 cell where the formula results in text and I'd like to somehow modify this code so that it also copies/paste values for both text and numbers...as it is now it doesn't copy/past value to the cell with the text in it.
Hope this makes sense.
Thank You,
VinceF
Win10
Office 2019
This code works perfectly when the result of the formula in the cell results in a number. However after a modification I have 1 cell where the formula results in text and I'd like to somehow modify this code so that it also copies/paste values for both text and numbers...as it is now it doesn't copy/past value to the cell with the text in it.
Hope this makes sense.
Thank You,
VinceF
Win10
Office 2019
VBA Code:
Application.ScreenUpdating = False
For Each myCell In Sheets("Win").Range("C6:CO194").SpecialCells(xlCellTypeFormulas, 1)
myCell.Copy
myCell.PasteSpecial xlValues
Next
With Application
.CutCopyMode = False
.ScreenUpdating = True
End With