Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Vying for the focus - Worksheet Vs Forms

Hi,

In my VBA program, I have attempted to load 2 modeless forms upon
startup. After which, I wish to return the focus onto the worksheet named
"Sheet1". The code is written as show below:

" Private Sub Workbook_Open()

'Load modeless forms

form1.show 0
form2.show 0

ThisWorkbook.Activate
Sheet1.Activate
ActiveCell.Activate


End Sub

"

However, I was unable to do so and the focus remains at form2. What should I
do to ensure that the focus will stay at the worksheet instead of the forms
?


--
Regards,
Adrian


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
On opening a worksheet move focus to a cell based on date davcas Excel Worksheet Functions 1 July 1st 08 02:18 PM
Modeless User Form and Worksheet Focus JWolf Excel Programming 2 May 26th 04 08:27 PM
User forms & worksheet help! mebner Excel Programming 6 February 11th 04 02:26 AM
Set focus on graphic inserted in worksheet David Cuthill[_2_] Excel Programming 3 February 9th 04 07:45 PM
Worksheet value to user forms David Excel Programming 2 October 28th 03 11:43 PM


All times are GMT +1. The time now is 04:10 AM.

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"