myrange=sheets.cells(1,1).current region 如上为VbA代码,请问怎么在代码中定义myrange
在VBA代码中,可以使用以下代码定义myrange:
```vba
Dim myrange As Range
Set myrange = Sheets(1).Cells(1, 1)
```
```vba
Dim myrange As Range
Set myrange = Sheets(1).Cells(1, 1)
```