【2】VBAcells选中单元格 czm1) hh5 = Cells.SpecialCells(xlCellTypeLastCell).Row 'OK! '行号 Debug.Print hh5 lh5 = ActiveSheet.UsedRange.Columns.Count 'OK! '列号 Debug.Print lh5 Range(Cells(1, 1), Cells(hh5, lh5)).Select Selection.Copy '复制当前工作表中"A1-cells(Hh5,Lh5)"的内容 Range(Cells(100, 1), Cells(100, 2)).ClearContents '清除Range("A100:B100")区域中公式、值; 2)使用Cells如何声明区域??? http://club./thread-1435935-1-1.html 1)VBA如何用CELLS来表示一个范围 https://zhidao.baidu.com/question/808086736252895212.html range(cells(1,1),cells(4,4)) = cells(1,1).resize(4,4), 单独cells没方法引用个区域,必须借助range 或者resize 1.1)VBA中单元格区域的选择(resize) http://www.360doc.com/content/18/0318/10/30583536_738079764.shtml 以A3单元格为参照,选定A3到C5,怎么操作 range("A3").resize(3,3).select 2)/https://zhidao.baidu.com/question/1707713462928537380.html Range(Cells(1,1), Cells(5,3)) = range(A1:C5) 【】 |
|
来自: c857084163 > 《Excel》