Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Excel Error Reports and Unexpected Termination of Program

I am a novice VBA programmer, and I am struggling. Excel has been
generating error reports, and shutting down. On other occasions, when I
attempt to save the file, the progress bar will indicate about 9/10 of the
file saved, and then it will suddenly quit with no file being created, or
any error messages. On other occasions, Excel will shut down on opening
with no error.

Errors appear to be generated at random, but most frequently when I click on
a button (on a chart), to which I have assigned the "FormTemp" macro. I
have attached my code. Any thoughts on what could be causing these errors?

Thank you in advance.
Chris



Sub FormTemp()
InitializeForm
UserForm1.TextBox1 = Format([SDate], "Short Date")
UserForm1.TextBox2 = Format([Qi], "#####0.0")
UserForm1.TextBox3 = Format([Di], "##0.0 %")
UserForm1.Show
End Sub

Sub AcceptDeclineInfo()
tempfd = [PasteSheet]
With Sheets(tempfd)
.Cells([PasteRow], [PasteCol]) = [SDate]
.Cells([PasteRow] + 1, [PasteCol]) = [Qi]
.Cells([PasteRow] + 2, [PasteCol]) = [Di]
End With
End Sub

Sub InitializeForm()
[SDate] = [cSDate]: [Di] = [cDi]: [Qi] = [cQi]
End Sub


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
Solver Error - an unexpected internal error has occurred Steve Excel Discussion (Misc queries) 0 February 12th 09 02:35 AM
Solver Error - an unexpected internal error has occurred Steve Excel Discussion (Misc queries) 0 February 12th 09 02:19 AM
Solver Error - an unexpected internal error has occurred Steve Excel Discussion (Misc queries) 0 February 12th 09 02:19 AM
Unexpected error occured. - MS Excel Erlington Excel Discussion (Misc queries) 0 June 25th 06 04:30 PM
Unexpected error message on closing an Excel file KG Excel Discussion (Misc queries) 1 March 21st 05 02:39 PM


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