Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy Sheet problem


Hi,
I have a routine that copies a worksheet, deletes all the buttons and
converts formulas to values. This all works fine.
The problem is I have a named range "CWR_Description" that is composed
of a group of merged cells. The range is used for text entry only, but
can be several sentences long and if it's too long, only part of the
text gets copied to the new sheet.
I know when I manually copy a sheet this takes place and Excel warns
you and prompts you to copy and paste the cell or cells individually.
I'm hoping someone can show me some method for handling this using
VBA,

Here's my Code

Private Sub cmdCopySaveAsCWR_Click()
Dim c As Range
Dim d As Range
ActiveSheet.Copy
Application.Dialogs(xlDialogSaveAs).Show
Application.ScreenUpdating = False
Application.EnableEvents = False
With ActiveSheet
..Unprotect ("geekk")
..Shapes("Group 11").Delete
..Shapes("Group 7").Delete
..Shapes("Group 3").Delete
Set d =
ActiveSheet.Cells.SpecialCells(xlCellTypeFormulas)
For Each c In d
With c
..Value = .Value
End With
Next c
..Protect ("geekk")
End With
ActiveWorkbook.Save
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub


--
Casey


------------------------------------------------------------------------
Casey's Profile: http://www.excelforum.com/member.php...fo&userid=4545
View this thread: http://www.excelforum.com/showthread...hreadid=503090

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
Problem: How to copy excel sheet in C++ sgwong Excel Programming 0 October 7th 05 02:54 AM
This'll stump you! Problem with Copy Sheet between Excel versions tdw Excel Programming 4 April 9th 05 04:33 AM
Copy sheet problem SiriS Excel Programming 10 May 6th 04 04:21 AM
For Tom Ogilvy re Copy Sheet Problem Jim[_34_] Excel Programming 1 January 3rd 04 02:41 PM
Copy Sheet Problem Jim[_34_] Excel Programming 8 January 2nd 04 11:50 AM


All times are GMT +1. The time now is 01:44 PM.

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

About Us

"It's about Microsoft Excel"