Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要的是使用 VBA 在 excel 2007 中读取格式化的单元格值。
例如,我有一个值为"01/01/2015"的单元格,格式化后它看起来像Jan/2015。有没有办法将格式化值Jan/2015读入变量而不是“01/01/2015”?
谢谢
尝试使用
someVariable = Range("A1").Text
反而
someVariable = Range("A1").Value
你可以在这里阅读更多