PC Review


Reply
Thread Tools Rate Thread

Copy /Pastespecial Textboxes

 
 
Confused Slug
Guest
Posts: n/a
 
      26th Nov 2009
I am using the code below to format a spreadsheet from within Access. After
copying sheet1 I then use pastespecial to remove links to the data on sheet 2
before deleting sheet2. When i use this in 2003 all is well. However, in 2007
the
copy / pastespecial does not appear to copy and paste the data in any
Textboxes on sheet1. Is this the real problem? Why does this occur and how
can i over come the issue? Any info greatfully recieved.


Set xlWb = xlApp.Workbooks.Open(newFileName)
xlApp.Visible = True

' Formats Excel Workbook
Dim xlSheet As Object
Set xlSheet = xlWb.Worksheets("Sheet1")
xlSheet.Cells.Copy
xlSheet.Cells.PasteSpecial Paste:=-4163, Operation:=-4142,
SkipBlanks:=False, Transpose:=False
xlWb.Worksheets("Sheet2").Delete
xlSheet.Select
xlSheet.Range("A1").Select
xlSheet.Protect ("secret")
..........


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy/pastespecial error =?Utf-8?B?Sm9u?= Microsoft Excel Programming 5 29th Oct 2007 12:59 PM
Copy and PasteSpecial help =?Utf-8?B?Y2hlbWljYWxz?= Microsoft Excel Programming 5 9th Nov 2006 04:31 PM
Copy PasteSpecial Rob van Gelder Microsoft Excel Programming 1 28th Jul 2004 07:59 AM
Copy & PasteSpecial Arthur Microsoft Excel Programming 1 3rd Nov 2003 06:41 PM
Copy and pastespecial without formulas Steven Cheng Microsoft Excel Programming 2 26th Jul 2003 08:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:14 AM.