Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Cannot Add New Workbook

Hi All,

I have a user with Excel 97 and Windows XP. The VBA code was working
fine until the PC was upgraded to XP. I first had a problem in trying
to copy a sheet to a new workbook. I was using the line

Sheets("Quote").Copy

This started to fail. Also, I could no longer copy the sheet manually.
Having searched this forum I have tried all the suggestions about the
name of the sheet object in the VBE and that all looks fine. The
workbook has 10 sheets, some of which are hidden, although the sheet I
am trying to copy is not.

I abandoned the copy sheet idea and decided to copy the cells , create
a new book and paste the data into it. This led to a problem on this
line

Workbooks.Add

This caused the error message "Method 'Add' of Object 'Workbooks'
Failed". Also, once this has occured, I can no longer add a new
workbook manually without exiting from Excel and restarting.

I know the real solution is probably going to be "Upgrade to Excel XP"
but that is not an option at the moment. By the way, this problem is
not restricted to one PC. It seems to happen on any PC with the
combination of Excel 97 & Windows XP.

Any idea's?

Regards

Glyn Baker
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cannot Add New Workbook

Please ignore this post. I have discovered that there are issues with access
permissions which I have yet to figure out.

Regards

Glyn Baker

"Glyn Baker" wrote in message
om...
Hi All,

I have a user with Excel 97 and Windows XP. The VBA code was working
fine until the PC was upgraded to XP. I first had a problem in trying
to copy a sheet to a new workbook. I was using the line

Sheets("Quote").Copy

This started to fail. Also, I could no longer copy the sheet manually.
Having searched this forum I have tried all the suggestions about the
name of the sheet object in the VBE and that all looks fine. The
workbook has 10 sheets, some of which are hidden, although the sheet I
am trying to copy is not.

I abandoned the copy sheet idea and decided to copy the cells , create
a new book and paste the data into it. This led to a problem on this
line

Workbooks.Add

This caused the error message "Method 'Add' of Object 'Workbooks'
Failed". Also, once this has occured, I can no longer add a new
workbook manually without exiting from Excel and restarting.

I know the real solution is probably going to be "Upgrade to Excel XP"
but that is not an option at the moment. By the way, this problem is
not restricted to one PC. It seems to happen on any PC with the
combination of Excel 97 & Windows XP.

Any idea's?

Regards

Glyn Baker



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
Adding a chart to large workbook brings workbook activity to a hal Dale Excel Discussion (Misc queries) 6 December 29th 08 05:50 PM
Macro to copy an image (or picture) from one workbook to a new sheetin another workbook Ruchir Excel Worksheet Functions 1 July 25th 08 07:29 AM
Select sheet tabs in workbook & save to separate workbook files stratocaster Excel Worksheet Functions 2 March 1st 06 03:35 PM
Open a password protected excel workbook from second workbook to fetch data using dynamic connection kaustav choudhury Excel Programming 2 April 3rd 04 06:18 AM
What commands do you use to name a workbook, save a workbook,open a workbook Steven R. Berke Excel Programming 1 July 24th 03 11:37 PM


All times are GMT +1. The time now is 11:00 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"