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.
一連の列の列ヘッダーを作成しています。以下のようなものでそれらを実行したいのですが、正しい構文を取得できませんでした。誰でも助けることができますか?
Range("AB1:AE1").Value = ("UnitPriceUSD","TotalCostUSD","UnitPrice", "TotalCost")
これを試して。
Dim arr As Variant arr = Array("UnitPriceUSD", "TotalCostUSD", "UnitPrice", "TotalCost") Range("AB1:AE1").Value = arr
またはさらに簡単です:
Range("AB1:AE1").Value = Array("UnitPriceUSD", "TotalCostUSD", "UnitPrice", "TotalCost")