Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Import VBA Code

I have what I believe to be a corrupt Excel file that I am
unable to open. I would like to know if I can write code
in a new workbook that would copy or import the code from
the corrupt file to the new workbook. Is this possible
with VBA?

Thank you for your consideration.

Sincerely,
Joe Zamboni
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Import VBA Code

If you knew the structure of a compound document file and the biff encoding
for the excel portions of that file, you could probably write thousands of
lines of code to read the file and perhaps work around the "corruption".

Easier might be to fine someone who has xl2002 and see if they can open a
copy of the file (xl2002 has a built in repair facility)

Or download the free OpenOffice software that can read xl files and doesn't
appear to respect a lot of the "corruptness" that excel does (from what I
have seen posted here

From Harald Staff:

Good old StarOffice, now known as OpenOffice
http://www.openoffice.org/
is known to open and recover corrupt Excel and Word files.

Now don't you dare to complain about the size of the download....

Best wishes Harald

-------------------------

Regards,
Tom Ogilvy



"Joe Zamboni" wrote in message
...
I have what I believe to be a corrupt Excel file that I am
unable to open. I would like to know if I can write code
in a new workbook that would copy or import the code from
the corrupt file to the new workbook. Is this possible
with VBA?

Thank you for your consideration.

Sincerely,
Joe Zamboni



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Import VBA Code

Thanks, Tom. I'll find someone with XL2002 and give it a
try. It will open in OpenOffice, but it removes much of
the formatting, range names, etc. That presents problems
of its own, since there is tons of formatting and named
ranges. Thanks again.
-----Original Message-----
If you knew the structure of a compound document file and

the biff encoding
for the excel portions of that file, you could probably

write thousands of
lines of code to read the file and perhaps work around

the "corruption".

Easier might be to fine someone who has xl2002 and see if

they can open a
copy of the file (xl2002 has a built in repair facility)

Or download the free OpenOffice software that can read xl

files and doesn't
appear to respect a lot of the "corruptness" that excel

does (from what I
have seen posted here

From Harald Staff:

Good old StarOffice, now known as OpenOffice
http://www.openoffice.org/
is known to open and recover corrupt Excel and Word files.

Now don't you dare to complain about the size of the

download....

Best wishes Harald

-------------------------

Regards,
Tom Ogilvy



"Joe Zamboni" wrote in message
...
I have what I believe to be a corrupt Excel file that I

am
unable to open. I would like to know if I can write

code
in a new workbook that would copy or import the code

from
the corrupt file to the new workbook. Is this possible
with VBA?

Thank you for your consideration.

Sincerely,
Joe Zamboni



.

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
import XML data...Is there a size limit on the import? MatthewG Excel Discussion (Misc queries) 0 February 10th 09 05:57 PM
How to Start Excel in Text Import Wizard for data import rlelvis Setting up and Configuration of Excel 0 July 10th 08 08:40 PM
Code to import from txt to excel N.F[_2_] Excel Discussion (Misc queries) 2 August 7th 07 08:24 PM
Trying to write vba code to import another spreadsheet... joep3 Excel Discussion (Misc queries) 3 September 6th 06 06:50 PM
Import a Code to a paragraph using a formula or macro! Manos Excel Worksheet Functions 3 February 11th 06 07:48 AM


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