Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Excel - Remove Formatting Error

I have a workbook created from a macro that recently started to post
the following message ONLY when first opened:

"Excel encountered an error and had to remove some formatting to avoid
corrupting the workbook. Please re-check your formatting carefully"

I've searched the groups and the 'net and unfortunately have not found
much helpful information. If I open the file, save it, then open it
again it won't return the above message again. I wrote code to open
the file and save it, in essence trying to by-pass the error message,
but it still appeared. Does anyone have any suggestions?!?!?

Thanks in advance!!!

Brian

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Excel - Remove Formatting Error

It sounds to me that the workbook (or maybe a specific worksheet in that
workbook) is close to being corrupted.

Maybe rebuilding that worksheet (or the whole workbook) would be in order.

You may want to try OpenOffice. Open your workbook in that, save it (as an
excel file) and see if that help cleans up your problem in excel.

http://www.openoffice.org, a 60-104 meg download or a CD

wrote:

I have a workbook created from a macro that recently started to post
the following message ONLY when first opened:

"Excel encountered an error and had to remove some formatting to avoid
corrupting the workbook. Please re-check your formatting carefully"

I've searched the groups and the 'net and unfortunately have not found
much helpful information. If I open the file, save it, then open it
again it won't return the above message again. I wrote code to open
the file and save it, in essence trying to by-pass the error message,
but it still appeared. Does anyone have any suggestions?!?!?

Thanks in advance!!!

Brian


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Excel - Remove Formatting Error

Sounds good, I'll give that a shot... Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Excel - Remove Formatting Error

Well, I was successfully able to remove the formatting error, however
still have no idea what was causing it. The macro I have combines data
from all workbooks in a specific folder and creates a new file with
todays date. I decided to remove each workbook, one by one, and run
the macro on the smaller set of workbooks so that I could isolate the
problematic workbook. I was then able to find the workbook that was
somehow causing my error, even pinpoint the problematic worksheet,
however I still could not tell what the formatting error was. I simply
remade the workbook and pasted in the data by cell contents ( I first
tried to copy and paste the range of data, however still received the
formatting error by this method ). This solved my problem, for the
formatting error is no longer popping up. I can assume the formatting
error was somewhere within this range of data, but does anyone have any
solutions for finding out where the error might be specifically??? I'd
like to know a better way to trouble-shoot this if this error ever
shows its ugly head again...

  #6   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Excel - Remove Formatting Error

well, the error popped up again so i did this to "solve" the problem:

I wrote code at the end of the macro to close the file that was just
created, & open it again. then i added a message box to confirm the
success of the new file creation, adding a note to tell the user to
remember to click save. i tried adding the save part into the macro,
but the error kept popping up until you manually clicked save in the
file. only problem here is if the user doesn't click save, but i'm
willing to risk it (this is at least a work-around)...

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
How do I remove the annoying automatic date formatting in Excel? Jose-Edinburgh Excel Discussion (Misc queries) 2 May 10th 23 11:43 AM
Excel 2007 Custom Error Bars BuzzinHornet Excel Discussion (Misc queries) 4 June 14th 06 10:47 PM
Custom error bars excel 2007 BuzzinHornet Charts and Charting in Excel 2 May 30th 06 02:21 AM
excel compile error. Only some computers? Bob Aylward Excel Discussion (Misc queries) 0 December 13th 05 07:16 PM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM


All times are GMT +1. The time now is 02:10 AM.

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"