By referring this(http://www.excelforum.com/excel-programming-vba-macros/867665-application-cutcopymode-false.html) link the answer is as below:
Application.CutCopyMode=False
is seen in macro recorder-generated code when you do a copy/cut cells and paste . The macro recorder does the copy/cut and paste in separate statements and uses the clipboard as an intermediate buffer. I think Application.CutCopyMode = False
clears the clipboard. Without that line you will get the warning ‘There is a large amount of information on the Clipboard....'
when you close the workbook with a large amount of data on the clipboard.
With optimised VBA code you can usually do the copy/cut and paste operations in one statement, so the clipboard isn’t used and Application.CutCopyMode = False
isn’t needed and you won’t get the warning.
Related Posts:
- What is the difference between “Form Controls” and “ActiveX Control” in Excel 2010?
- What does <> mean?
- How to find a value in an excel column by vba code Cells.Find
- What is the function of FormulaR1C1?
- VBA Excel – Insert row below with same format including borders and frames
- Excel VBA: Can’t get a match, error “Unable to get the Match property of the WorksheetFunction class”
- How to install Date Picker form control in Excel 2016
- How to install Date Picker form control in Excel 2016
- How to fill color in a cell in VBA?
- Refreshing all the pivot tables in my excel workbook with a macro
- Average in VBA in Excel
- VBA Excel “Compile error: Object Required”
- Choosing paper size (NOT DEFAULT sizes) in excel vba
- “Unable to get the VLookup property of the WorksheetFunction Class” error [duplicate]
- Paste Special error 1004 PasteSpecial method of Range class failed
- VBA: Getting run-time 1004: Method ‘Range’ of object ‘_Worksheet’ failed when using cells
- Cannot run the macro… the macro may not be available in this workbook
- Swap x and y axis without manually swapping values
- How to use Regular Expressions (Regex) in Microsoft Excel both in-cell and loops
- How to use Regular Expressions (Regex) in Microsoft Excel both in-cell and loops
- Object Required Error in excel VBA
- Insert picture into Excel cell
- Check if a string contains another string
- VBScript to open a dialog to select a filepath
- Does VBA have Dictionary Structure?
- What are .NumberFormat Options In Excel VBA?
- Better way to find last used row
- VBA, if a string contains a certain letter
- Excel VBA Macro: User Defined Type Not Defined
- “Sub or Function not defined” when trying to run a VBA script in Outlook
- VBA Runtime Error 1004 “Application-defined or Object-defined error” when Selecting Range
- Select method of Range class failed via VBA
- Does VBA contain a comment block syntax?
- Why does “Paste Method of Worksheet class failed” occasionally occur?
- Deleting a file in VBA
- How to return a result from a VBA function
- How to clear memory to prevent “out of memory error” in excel vba?
- Use VBA to Clear Immediate Window?
- VBA: Else without If Error
- Recommended IDE for VBA
- ByRef argument type mismatch in Excel VBA
- How to comment and uncomment blocks of code in the Office VBA Editor
- Run-time error ‘3061’. Too few parameters. Expected 1. (Access 2007)
- VBA: Convert Text to Number
- VBA Error: “Compile error: Expected End Sub”
- Scraping data from website using vba
- Pass arguments to Constructor in VBA
- Error: “Could Not Find Installable ISAM”
- Loop without Do error
- Row count where data exists
- Test or check if sheet exists
- How to detect if user select cancel InputBox VBA Excel
- macro run-time error ‘9’: subscript out of range
- Why does my VBA code throw an “Invalid outside procedure” error?
- VBA: Run time error ’91’?
- Compare Dates in VBA
- ‘Cannot find DAO350.dll’ file error VB6
- Excel Solver Password: what is it and where can it be acquired/bought?
- Using Excel VBA to run SQL query
- Compile error: Next without For || VBA
- Is there a way to crack the password on an Excel VBA Project?
- MS Excel Scatterplot converts Months to Numbers
- IndexError: too many indices for array
- IndexError: too many indices for array
- ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine
- IndexError: too many indices for array
- Excel: Calculate the frequency of a particular month in a column of date cells
- Help needed with Median If in Excel
- Invalid column count in CSV input on line 1 Error
- Invalid column count in CSV input on line 1 Error
- excel IF formula Error, “You’ve entered too many arguments”
- Export html table data to Excel using JavaScript / JQuery is not working properly in chrome browser
- What is a correct MIME type for .docx, .pptx, etc.?
- Is there Infinity in Spreadsheets?
- Declaring variables in Excel Cells
- How can I open an Excel file in Python?
- ValueError: cannot index with vector containing NA / NaN values
- lists and arrays in VBA
- How to run a SQL query on an Excel table?
- Excel – SUMIFS for multiple columns
- Workaround for “Formula omits adjacent cells”
- ImportError: No module named win32com.client
- Is it possible to force Excel recognize UTF-8 CSV files automatically?
- Excel Filters – show only relevant values in the filter
- check if a file is open in Python
- Select all the cells below current cell in excel
- Exception from HRESULT: 0x800A03EC Error
- Excel: Can I create a Conditional Formula based on the Color of a Cell?
- Syntax error on token(s), misplaced construct(s)
- ‘Microsoft.ACE.OLEDB.16.0’ provider is not registered on the local machine.
- How do I open space-delimited file in Microsoft Excel?
- Python: Pandas pd.read_excel giving ImportError: Install xlrd >= 0.9.0 for Excel support
- Error -1072896636 “DTD Prohibited” when opening xml file in Excel, what do I do?
- How to open an Excel file in C#?
- VB: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)
- VBA array sort function?
- (Excel) Conditional Formatting based on Adjacent Cell Value
- Shortcut to Apply a Formula to an Entire Column in Excel
- How to label scatterplot points by name?
- How to Clear Office Clipboard with VBA