A
Anne
We need to set the range from text sent to us. Below is an exmple. Can
anyone help as the issue is that normally the range the example below only
references cells [C4, B2, D8] in a sheet and not all the sheets and cells
[Sheet1!C4, Sheet2!B2, Sheet3!D8].
Sub test()
On Error GoTo iErrors
Dim strText As String
strText = "Sheet1!C4, Sheet2!B2, Sheet3!D8"
Dim rngTest As Excel.range
Set rngTest = Application.range("Sheet1!C4, Sheet2!B2, Sheet3!D8")
Debug.Print rngTest.Address
Exit Sub
iErrors:
Err.Clear
End Sub
'We need the rngTest.Address to reflect the different ranges in the
different sheets, namely Sheet1!C4, Sheet2!B2, Sheet3!D8.
Thanks in advancce.
Howard
anyone help as the issue is that normally the range the example below only
references cells [C4, B2, D8] in a sheet and not all the sheets and cells
[Sheet1!C4, Sheet2!B2, Sheet3!D8].
Sub test()
On Error GoTo iErrors
Dim strText As String
strText = "Sheet1!C4, Sheet2!B2, Sheet3!D8"
Dim rngTest As Excel.range
Set rngTest = Application.range("Sheet1!C4, Sheet2!B2, Sheet3!D8")
Debug.Print rngTest.Address
Exit Sub
iErrors:
Err.Clear
End Sub
'We need the rngTest.Address to reflect the different ranges in the
different sheets, namely Sheet1!C4, Sheet2!B2, Sheet3!D8.
Thanks in advancce.
Howard