Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Error in my App??

Hi newsgroup

I've already posted some question because I have troubles with my Excel app.

But now I think I filtered the real problem.

My problem is that excel crashes when I use forms which have textboxes with
a controlsource. I also have textboxes which I fill through code.

So. Now I noticed that when I do not execute workbook_open I didn't get
crashes (lost connection to data, or whatelse).
Using workbook_open let's excel crash.

Any idea how to handle, because it is very important, that I have to do some
code when starting excel. The code only sets zooms like below:

' Sheet "Antrag"
Sheets("Antrag").Select
Range("p12").Select
ActiveWindow.Zoom = 95
ActiveWindow.ScrollRow = 1
ActiveWindow.ScrollColumn = 1

' Sheet "Prämienübersicht"
Sheets("Prämienübersicht").Select
Range("a1").Select
ActiveWindow.Zoom = 80
ActiveWindow.ScrollRow = 1
ActiveWindow.ScrollColumn = 1

' Sheet "Offerte UVGE"
Sheets("Offerte_UVGE").Select
Range("B1").Select
ActiveWindow.Zoom = 100
ActiveWindow.ScrollRow = 1
ActiveWindow.ScrollColumn = 1

Thanks for the help!

D.H. Lee


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Error in my App??

Hi
difficult to make sense of your question. First you talk about forms,
but then show no code to do with forms. Then you talk about
Workbook_Open, but don't show the Workbook_Open code. The code you
show looks harmless. If you think it is this piece of code causing the
problem, the only things I can think of are
1. Do the sheets given exist - are the names right?
2. Are the sheets given protected in some way?

If it is not that code causing the problem, then you will need to
provide more information.
regards
Paul

On Dec 12, 1:26*pm, "don H. Lee" wrote:
Hi newsgroup

I've already posted some question because I have troubles with my Excel app.

But now I think I filtered the real problem.

My problem is that excel crashes when I use forms which have textboxes with
a controlsource. I also have textboxes which I fill through code.

So. Now I noticed that when I do not execute workbook_open I didn't get
crashes (lost connection to data, or whatelse).
Using workbook_open let's excel crash.

Any idea how to handle, because it is very important, that I have to do some
code when starting excel. The code only sets zooms like below:

* *' Sheet "Antrag"
* * Sheets("Antrag").Select
* * Range("p12").Select
* * ActiveWindow.Zoom = 95
* * ActiveWindow.ScrollRow = 1
* * ActiveWindow.ScrollColumn = 1

* * ' Sheet "Prämienübersicht"
* * Sheets("Prämienübersicht").Select
* * Range("a1").Select
* * ActiveWindow.Zoom = 80
* * ActiveWindow.ScrollRow = 1
* * ActiveWindow.ScrollColumn = 1

* * ' Sheet "Offerte UVGE"
* * Sheets("Offerte_UVGE").Select
* * Range("B1").Select
* * ActiveWindow.Zoom = 100
* * ActiveWindow.ScrollRow = 1
* * ActiveWindow.ScrollColumn = 1

Thanks for the help!

D.H. Lee


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
Error when cell A1 is not active and xlInsideVertical border formatthrowing error 1004 [email protected] Excel Programming 7 August 7th 08 08:43 PM
Error handling error # 1004 Run-time error [email protected] Excel Programming 3 May 20th 08 02:23 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
Error Handling - On Error GoTo doesn't trap error successfully David Excel Programming 9 February 16th 06 05:59 PM
Automation Error, Unknown Error. Error value - 440 Neo[_2_] Excel Programming 0 May 29th 04 05:26 AM


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