LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.programming
mps mps is offline
external usenet poster
 
Posts: 12
Default Random corruption in Excel files

Hey Nick,
It compiles without errors now and removes the toolbar, but still
intermittently crashes Excel. I have uploaded
http://www.japaneselearningtools.com/crash2.zip. On my machine, choosing
Excel@Japanese Tools/Clear History, followed by saving, crashes Excel.

Do you see anything else?

Thanks so much for all your help,

Mike

"NickHK" wrote:

Mike,
1. For one thing, allWords(i).CharRows returns an array of CharRow
objects. But your variable CharRows is an array of Integers.
Also, to use array assignment like this, use
Dim CharRows As Variant
For i = 1 To UBound(allWords)
CharRows = allWords(i).CharRows

It maybe better not to use CharRows as the name of the variable, to avoid
confusion with the CharRows property of allWords.

2. To me that toolbar is useless without the WB. You install it so it's
you responsibility to remove it.
Probably in the Workbook_Close event.
Application.CommandBars("Excel@Japanese Toolbar").Delete

NickHK

"mps" wrote in message
...
Hi Nick,
Thanks for suggesting Debug/Compile VBA Project. Very useful.

A couple of questions from what it shows:

1. I can't figure out why I'm getting the "Can't Assign to Array" error
because the array I'm assigning to is resizable, which is supposed to be

OK.
Can you look at that?

2. I didn't realize that I should remove the attached toolbar.

When/how/why
should I do that?

Thanks so much,

Mike

"NickHK" wrote:


I have noticed you are not removing the Toolbar you install upon

opening.

Excel XP & Excel 2000:
This version now gives Update Links request upon opening
Opening this version does not crash Excel, but if I drag the floating
toolbar around, I "erase" the visible cell and see the cell

"underneath".
The tabs are indicating "Words" is the activesheet, but it is 'All

Kanji"
that is "visible" and erased. After a save and reopen, this does not

happen
again.

After a test via "Start Test", saving does not crash, but errors on the
SaveTest routine with sub/function not found for "correctWords".

I have noticed you have numerous basic error :
Missing End If
Missing End Function
Can't assign to array

These found with DebugCompile VBAProject. You should fix these first

NickHK







 
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
Why do some Excel files I save have 36+ random characters on the e Justin Excel Discussion (Misc queries) 0 June 13th 08 09:52 PM
EXCEL file corruption Dean[_8_] Excel Programming 8 April 15th 06 04:54 AM
sum in random files.xls how? Marina Limeira Excel Programming 1 January 17th 06 02:27 PM
Do Macros cause corruption of big files Abhay Excel Discussion (Misc queries) 2 November 30th 05 01:59 PM
Corruption in Excel? Dudley Excel Discussion (Misc queries) 0 October 25th 05 03:36 PM


All times are GMT +1. The time now is 01:18 PM.

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"