积极答复者
Vb2008中如何设置Excel单元格格式为自动换行?

问题
答案
-
你可以先在excel录制个设置单元格的内容自动换行操作的宏,然后仿照宏里面的VB代码再在VB2008里面实现
算神的博客- 已建议为答案 Mike FengModerator 2011年8月19日 12:06
- 已标记为答案 Mike FengModerator 2011年8月23日 15:42
-
也就是直接设置其自动换行等于true
如下是设置第二行第二列的单元格
ws.Cells(2, 2).WrapText = True
Best regards,
Mike Feng [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Mike FengModerator 2011年8月23日 15:42
全部回复
-
你可以先在excel录制个设置单元格的内容自动换行操作的宏,然后仿照宏里面的VB代码再在VB2008里面实现
算神的博客- 已建议为答案 Mike FengModerator 2011年8月19日 12:06
- 已标记为答案 Mike FengModerator 2011年8月23日 15:42
-
也就是直接设置其自动换行等于true
如下是设置第二行第二列的单元格
ws.Cells(2, 2).WrapText = True
Best regards,
Mike Feng [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Mike FengModerator 2011年8月23日 15:42