Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5
Default Form keep the focus unable to get to the code - HELP!

I designed a form, which on open of excel gets the focus, on which I had a
button to allow me to get to the code whilst developing the form. I copied
the button then made the original button not visible. I then opened the form
only to find that neither button worked. Now when I open excel it sets the
focus to the form and I cannot get off the form to the code to put the button
back to visible or to make any other changes. The form on close opens
outlook and when outlook closes it closes excel.
How can I get off the form to allow me to edit the code or a worksheet or
infact anything? I have a lot of code on the form so to have to start again
and design from scratch - the words "harry carry" come to mind. Thanks to
anyone who can help.
--
Kaz
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,344
Default Form keep the focus unable to get to the code - HELP!

Hi,

With Excel open and the file closed choose File, Open while keeping the
Shift key depressed, pick the file and open it. This will disable the macro
that is displaying the form and you can then go to the VBE and correct the
problem.

Alternatively you can choose Tools, Macro, Security and set the security to
High. Then open the file and choose Disable Macros when prompted.

--
Cheers,
Shane Devenshire


"Kaz G" wrote:

I designed a form, which on open of excel gets the focus, on which I had a
button to allow me to get to the code whilst developing the form. I copied
the button then made the original button not visible. I then opened the form
only to find that neither button worked. Now when I open excel it sets the
focus to the form and I cannot get off the form to the code to put the button
back to visible or to make any other changes. The form on close opens
outlook and when outlook closes it closes excel.
How can I get off the form to allow me to edit the code or a worksheet or
infact anything? I have a lot of code on the form so to have to start again
and design from scratch - the words "harry carry" come to mind. Thanks to
anyone who can help.
--
Kaz

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
Opens to form then keep focus and unable to get to code - HELP!! Kaz G Excel Discussion (Misc queries) 0 January 23rd 08 01:16 AM
Source code for combo box in form shnim1 Excel Discussion (Misc queries) 1 April 14th 06 04:46 AM
Add code to a excel's form created by program (Vb .Net) Pablo via OfficeKB.com New Users to Excel 0 June 29th 05 01:34 PM
close form code tkaplan Excel Discussion (Misc queries) 1 June 3rd 05 10:49 PM
User Form Code mully New Users to Excel 9 May 22nd 05 07:54 PM


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