I have the following set of data:
A B
20 Day Item
21 1-Nov-02 12
22 1-Dec-02 6
23 2-Dec-03 8
I have named cell A20 rgTransactions.
In my code I wish to do various things within the future growing list around A20. This is my code sample:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yet when I run this I get the following error:
Run-time error '1004':
Unable to get the CurrentRegion property of the Range class
Any ideas to why this error is occurring would be appreciated.
Regards
Nasar
A B
20 Day Item
21 1-Nov-02 12
22 1-Dec-02 6
23 2-Dec-03 8
I have named cell A20 rgTransactions.
In my code I wish to do various things within the future growing list around A20. This is my code sample:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Code:
Private Sub cmdAddDDs_Click()
Dim InsertRow As Integer
Dim rgTX As Range
Dim TXAddress As String
With ActiveSheet
InsertRow = 0
Set rgTX = .Range("rgTransactions").CurrentRegion
InsertRow = rgTX.Rows.Count
TXAddress = rgTX.Address
End With
End Sub
Yet when I run this I get the following error:
Run-time error '1004':
Unable to get the CurrentRegion property of the Range class
Any ideas to why this error is occurring would be appreciated.
Regards
Nasar