gpt4 book ai didi

excel - 将列单元格 "Number saved as Text"转换为数字格式的宏

转载 作者:行者123 更新时间:2023-12-02 23:43:33 26 4
gpt4 key购买 nike

我尝试了以下方法,但不起作用:

Sub Enter_Values3()
Dim dbl As Double
dbl = ThisWorkbook.Worksheets(2).Columns("A:A").Select
End Sub

最佳答案

马蒂·麦克弗里 Link worked

Sub macro()
Range("A:A").Select 'specify the range which suits your purpose
Sheets(2).Select
With Selection
Selection.NumberFormat = "0"
.Value = .Value
End With
End Sub

谢谢

关于excel - 将列单元格 "Number saved as Text"转换为数字格式的宏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18835677/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com