Hi all,
My project has ballooned and it is now returning "Out of Memory" errors. I have deleted all unnecessary code and worksheets. Can anyone give me any suggestions of other things to try.
My biggest memory hogs are the half dozen or more columns (each column with at least 240 rows) which run a macro using the find method when the user double-clicks a cell.
Currently, I running this code:
>>>>>>>>>>>>>>>>>>>>>
IPrivate Sub Worksheet_BeforeDoubleClick( _
ByVal target As Excel.Range, _
Cancel As Boolean)
Dim addr As String
addr = target.Address
If addr = "$A$1" Then
End If
If addr = "$A$2" Then
End If
If addr = "$A$3" Then
End If
and so on................
End Sub
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
and it works spendidly. My problems is that my code includes a reference for each cell where I want this "Double-Click" event to occur, thus I have created a memory hog.
Can this routine be altered to give the same result with less code?
Can looping be incorporated with this code?
Can any give an example of some code
that acheives the desire goal by looping through these statements?
Help Please!
Chris:puzzled: