Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default new error when try to load userform

dear
expert

i have a project and use "userform1" and so far it's work ok
to day i add some controllers to userform and sub module
and i got an error message
"
run-time error
'2110'
can't move focus to the control because it is invisible,not enabled,o
a type that does not
accept the focus
"
and when i press on button debug the yellow line point on th
command
load userform1
i used this command before and i did not change any thing
except what i explain erlear and the new sub module it's called afte
the userform loaded
i try to "play" with enable and visible but nothing help
i also take another project with the same reference and there(in othe
project) it's work
when i push the button help at error message a blank page appear
and this error message number not found in visual help
could you help me
regard
izchack shtifma

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default new error when try to load userform

Hi Izchack

My guess -seeing your code would be useful : Load is not the same as Show. You can Load a
form and it's still only in RAM, not on screen. And if the form's Initialize code has some
SetFocus job, it will err since there's no focus on an invisible form. So -still guessing-
replace
Userform1.Load
with
Userform1.Show

When tons of code call and rely on eachother then the debugger isn't always of great help.
The problem is deeper down the chain than what Debug displays, as it probably is here.

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"izchk shtifman" wrote in message
...
dear
expert

i have a project and use "userform1" and so far it's work ok
to day i add some controllers to userform and sub module
and i got an error message
"
run-time error
'2110'
can't move focus to the control because it is invisible,not enabled,or
a type that does not
accept the focus
"
and when i press on button debug the yellow line point on the
command
load userform1
i used this command before and i did not change any thing
except what i explain erlear and the new sub module it's called after
the userform loaded
i try to "play" with enable and visible but nothing help
i also take another project with the same reference and there(in other
project) it's work
when i push the button help at error message a blank page appear
and this error message number not found in visual help
could you help me
regard
izchack shtifman


---
Message posted from http://www.ExcelForum.com/



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 to load a listbox in a userform? Martin Excel Discussion (Misc queries) 3 July 25th 07 03:16 PM
Validation Load Error RhysPieces Excel Discussion (Misc queries) 0 June 8th 07 07:08 PM
Load caption box on userform open ExcelMonkey Excel Worksheet Functions 1 April 3rd 07 11:02 PM
Load a Userform Nick Excel Programming 1 September 10th 03 03:24 PM
load userform from other VBProject (Excel 2000) Keith Willshaw Excel Programming 1 July 28th 03 04:12 PM


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