如何使用Visual Basic格式化Excel列值(宏) [英] How to Format the Excel Column values using Visual Basic (Macro)
问题描述
嗨
我正在尝试格式化Excel中的列值
使用宏,visual Basic
as
Hi
I am Trying to Format the Columns Value In Excel
Using Macro,visual Basic
as
Format(Cells(iRow, icol), "yyyy-mm-dd")
我正在使用循环格式化该特定列中的所有可用数据。
我是从另一个复制粘贴这个Excel文件的源代码我写了
宏。来自另一个来源的数据具有不同的日期格式。我正在尝试以
格式化所有在yyyy-mm-dd中的格式。
我也设置了格式选项作为此格式。
但运行宏后也没有得到必需的输出。
格式是剩余的。
请协助如何做到这一点。
I am Using loop to Format all the Available Data in that Particular Column.
I am Copy-pasting From another Source to this Excel File where I have Written The
Macro. The Data From Another source have Different Date Formats.And am Trying to
Format all in one Format that i s in "yyyy-mm-dd".
I have also Set the the Format Options as this Format.
But After Running the macro also am not getting the Required output.
The Format is Remaining the Same .
Please assist How to Do this.
推荐答案
访问这里..............
http://stackoverflow.com/questions/12324190/vba-code-to-set-date-format-for-a-specific- column-as-yyyy-mm-dd [ ^ ]
visit here..............
http://stackoverflow.com/questions/12324190/vba-code-to-set-date-format-for-a-specific-column-as-yyyy-mm-dd[^]
这篇关于如何使用Visual Basic格式化Excel列值(宏)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!