如何使用Visual Basic格式化Excel列值(宏) [英] How to Format the Excel Column values using Visual Basic (Macro)

查看:143
本文介绍了如何使用Visual Basic格式化Excel列值(宏)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试格式化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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆