excel中批量删除公式,保留数值 Sub macro1() Dim sh As Worksheet For Each sh In Sheets sh.UsedRange = sh.UsedRange.Value Next End Sub ALT+F11进入VBE编辑界面,菜单-->工具-->添加模块,复制粘贴9楼代码,ALT+F11返回工作表,ALT+F8执行宏macro1.…
SELECT A.Hawb, ( SELECT GoodsNameCn+char(10) FROM HawbBody hl WHERE hl.Hawb=A.Hawb FOR XML PATH('') ) AS GoodsNameCn FROM HawbBody A GROUP BY A.Hawb 重点是 这个 char(10) 简单测试代码如下: SELECT 'aa'+char(10)+'bb'+char(10)+'cc'+char(10)+'dd'+char(10)+'ee'+char(10…