简体   繁体   English

如何将包含公式的单元格的值复制到另一个单元格?

[英]How to copy the value of a cell that contains a formula into another cell?

In Column A, I use a API that goes out to the web and returns a stock price. 在A列中,我使用一个API,该API可以访问网络并返回股票价格。

I want to then copy just the stock price (not the formula) automatically into the cell next to it. 然后,我只想将股票价格(而不是公式)自动复制到它旁边的单元格中。 I know I can copy special but I want this to occur automatically. 我知道我可以复制特殊内容,但我希望这会自动发生。 I'm looking for a Macro to do this. 我正在寻找一个宏来做到这一点。

Thanks 谢谢

 Sub Demo    
 columns("a").copy
 range("b1").pastespecial xlpastevalues
End Sub

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM