ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,738
- Office Version
- 2007
- Platform
- Windows
Morning,
I assume the code supplied below is what you require ?
When i close the sheet i see the below code running & each page is flickered for me to view.
Can it be simplified or changed so when i click close it then does its thing without the visual effect that i currently see each time ?
I assume the code supplied below is what you require ?
When i close the sheet i see the below code running & each page is flickered for me to view.
Can it be simplified or changed so when i click close it then does its thing without the visual effect that i currently see each time ?
Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)Sheets("Sheet1").Range("P1:U1").Copy Sheets("Sheet1").Range("E6")
Sheets("Sheet1").Range("P2").Copy Sheets("Sheet1").Range("E7")
Sheets("DR SITE").Activate
ActiveSheet.Range("E6:J6").ClearContents
Range("E7").Select
Sheets("EBAY").Activate
ActiveSheet.Range("E6:J6").ClearContents
Range("E7").Select
Sheets("DR SITE").Activate
ActiveSheet.Range("E7").ClearContents
Range("E7").Select
Sheets("EBAY").Activate
ActiveSheet.Range("E7").ClearContents
Range("E7").Select
ActiveWorkbook.Save
End Sub