+ Reply to Thread
Results 1 to 2 of 2

pass 'focus' from form to sheet

  1. #1
    Registered User
    Join Date
    05-25-2006
    Posts
    8

    pass 'focus' from form to sheet

    I have a form which opens when the spreadsheet opens. I want the form to be open in vbmodeless and for cell F2 to be 'active'. By that I mean I want the behavior to be the same as if I clicked in cell F2. Right now the form keeps the focus and the cell is not 'clicked in' even though my macro tells me that the active cell is F2.

    In newbie speak, b/c that's what I am, I want the bar at the top of the form to be gray and not blue which is what happens when I physically click in cell F2.

    Sorry for such a lame description.

    Here's the code that exists in the form now:

    Please Login or Register  to view this content.

    Thanks
    B
    Last edited by VBA Noob; 01-08-2007 at 03:39 PM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Try:

    UserForm1.Show vbModeless

    This allows the user to enter data on the work sheet and also if form is
    used to enter data through it.


    This is suggestion was extracted from

    http://www.excelforum.com/showthread.php?t=350257

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1