Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a code that creates a quote by moving sheets to a new file. When I
step through the macro, for some reason it is calling upon a worksheet_selectionchange and causing my virtual memory to go through the roof. How do I prevent my macro from automatically calling about the worksheet_selectionchange that I have created. Here is the code that is causing it to goto the worksheet_selectionchange, along with the code for the Worksheet_selectionchange. My worksheet_selectionchange is under my "Agreement" Tab and that is when it gets called upon by the macro. Hope this makes sense. Any help is appreciated. AWB.Activate Sheets("Agreement").Select Sheets("Agreement").Copy Befo=Workbooks("Email Template Macro3l.xls").Sheets _ (3) Cells.Select Selection.Copy Range("A1").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Cells.Select Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Row = 52 Then With Worksheets("Agreement") promptdialog.Show End With End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Problem | New Users to Excel | |||
Macro Problem | Excel Discussion (Misc queries) | |||
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable | Excel Worksheet Functions | |||
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable | Excel Discussion (Misc queries) | |||
macro problem | Excel Programming |