Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Pasting in code and clipboard message

I have a spreadsheet with procedure that goes through all the files in a
particular path, copies a specific column out of each and pastes it in the
new one. After copying and pasting, I close the source file, and get the
message saying there is a large amount of data on the clipboard, do I want to
save it. Once it is pasted, I don't need to save it on the clipboard.

Is there a way of keeping this message from appearing with every copy &
paste? The code is below, the line marked with the arrows is the one that
triggers the clipboard message. Thanks.

For Each flName In fls
If UCase(Left(flName.Name, 1) = "D") Then
strFileName = strPath & "\" & flName.Name
xlSS1.Cells(2, intColCounter).Value = flName.Name
Workbooks.Open Filename:=strFileName, updatelinks:=False
Worksheets("S-S-1").Columns("B:B").Copy
xlSS1.Cells(1, intColCounter).PasteSpecial xlPasteValues
xlSS1.Cells(1, intColCounter).PasteSpecial xlPasteFormats
== Workbooks(2).Close savechanges:=False <==
intColCounter = intColCounter + 1
End If
Next flName



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I turn off the clipboard icon when cut and pasting? Caroilin Setting up and Configuration of Excel 1 September 21st 06 05:40 PM
Why are my cells locking after pasting from office clipboard? Wilesworld Excel Discussion (Misc queries) 0 August 11th 06 08:36 PM
Code to handle clipboard message D. Pirate Roberts Excel Programming 1 October 3rd 05 11:31 PM
Pasting from Excel Clipboard with VBA Macro ExcelPeter218 Excel Programming 2 February 10th 05 02:04 AM
Macro - Pasting clipboard in a find box Mike Tomasura Excel Programming 2 July 16th 03 04:23 PM


All times are GMT +1. The time now is 10:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"