ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy only bumbers from cells (https://www.excelbanter.com/excel-programming/279965-re-copy-only-bumbers-cells.html)

Robert Rosenberg[_2_]

Copy only bumbers from cells
 
Your code should work unless you're looking to pull out numbers that are
embedded as part of a formula. I have a SUM function in A1 and when I run
your code it places the value (not the formula) in cell B1.

Can you provide a little more detail?
_______________________
Robert Rosenberg
R-COR Consulting Services
Microsoft MVP - Excel

"Antonis" wrote in message
...
Hi I am using this code to copy cell A1 to cell B1

Range("B1").Value = Range("A1").Value

How can I copy only the numbers inside the cell without
copying any functions or formulas insideit?

Thanks for your help





All times are GMT +1. The time now is 04:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com