Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I've got an overflow error that I don't know how to deal with. High level: I'm clearing all contents and formats from a sheet, and then copying/pasting all (updated) contents and formats from another workbook/sheet (first section of code below) The Target worksheet (the one being cleared and pasted into) has Worksheet_Change code that I've just added (second bit of code below). When the cells on the Target sheet are cleared, it triggers the Worksheet_Change event, and I get the overflow error. Any thoughts as to why, and more importantly, how to deal with this? Thanks! With wksSource wksTarget.Cells.ClearContents wksTarget.Cells.Interior.Pattern = xlNone .Cells.Copy wksTarget.Cells(1) End With 'wksSource Private Sub Worksheet_Change(ByVal Target As Range) Dim iCol As Long Dim iRow As Long Dim myNotes As String If Target.Cells.Count 1 Or IsEmpty(Target) Then Exit Sub [more code here, but it dies at the first line] Frank |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to clear clipboard memory? | Excel Discussion (Misc queries) | |||
Clear Cells and Worksheet_Change Q | Excel Programming | |||
Excel ODBC query tables memory overflow | Excel Programming | |||
Do you wish to clear clipboard memory? | Excel Programming |