This doesn't happen often, but has happened in a few worksheets. The worksheets are unprotected. Can anyone help me?

Can't copy sheet in Excel
#1
Posted 08 January 2007 - 07:46 AM

This doesn't happen often, but has happened in a few worksheets. The worksheets are unprotected. Can anyone help me?
#2
Posted 08 January 2007 - 08:08 AM

Edited by pip22, 08 January 2007 - 08:08 AM.
#3
Posted 08 January 2007 - 01:28 PM

Can you go to 'Edit>Select All' on the sheet you want to copy, then open a new document and go to 'Edit>Paste' ?
Yes, that fixed it! Thanks.
#4
Posted 09 February 2007 - 04:54 AM

Can you go to 'Edit>Select All' on the sheet you want to copy, then open a new document and go to 'Edit>Paste' ?
Yes, that fixed it! Thanks.
Well, that may solve the problem but doesnt answer the question why the normal sheet copy/paste function doesnt work. I have the same problem while running a script that should create a number of sheets authomatically.
I use a copy function made by XL Dennis. You see it below. It works beautifully. But at some point I get the same error as our friend. I have the suspition that the copy/paste cache get full and therefore is not able to contain more info so the sheet copy/paste doesnt work anymore.
No ideas around?
Sub Add_sheet(sheetname)
'© 2002 XL-Dennis
Dim stNameField As String
Dim oObjekt As Object
Dim wsBlad As Worksheet
Dim rnCell As Range
Dim i As Integer
Application.ScreenUpdating = False
i = Worksheets.Count
' ActiveSheet.Copy after:=Worksheets(2)
ActiveSheet.Copy after:=Worksheets(i)
i = i + 1
Set wsBlad = Worksheets(i)
'Ifall det inte finns formler
On Error Resume Next
For Each rnCell In wsBlad.Cells.SpecialCells(xlFormulas)
rnCell.Value = rnCell.Value
Next
Application.ScreenUpdating = True
stNameField = blad
' = CStr(wsBlad.Range("A1").Value)
With wsBlad
For Each oObjekt In .Shapes
oObjekt.Delete
Next
.Name = stNameField
'.Range("H1:H40").Clear
End With
End Sub
#5
Posted 07 March 2013 - 11:30 AM

Similar Topics
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
As Featured On:






