PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Crashes error opening workbook

Reply

error opening workbook

 
Thread Tools Rate Thread
Old 18-06-2007, 10:41 PM   #1
=?Utf-8?B?Y2xhcmtudg==?=
Guest
 
Posts: n/a
Default error opening workbook


I keep getting an error when I open a workbook stating that it is unable to
open a different file. I thought the problem began when I tried to copy a
macro from the other file into this one. I thought that by recreating the
document, I would get rid of the error. The macro originally copied to
document so that it would archive a summary page. The summary page
automatically updates every day using vlookups). Here is my code:

Sub Archive()
'
' Keyboard Shortcut: Ctrl+n
'
Worksheets("Summary").Unprotect

Sheets("Summary").Select
Sheets("Summary").Copy After:=Sheets("Summary")
Sheets("Summary (2)").Select
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Range("D11").Select

Worksheets("Summary").Protect
End Sub

I have looked under tools/options and in the vba window to see if the file
that I am working in is somehow pointing to the other file but I am not sure
that I am looking for the right thing. I just need to not get the error when
I open the file. Please help!
  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off