Results 1 to 9 of 9

Focus cells

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    Focus cells

    Hi Friends,

    Below code is for an userform. Data gets filled in Sheet1.But Sheet1 is in "Veryhidden mode" for my requirement. So, the range A4 in sheet1 is focussed according to below code.There is Sheet2 which is directly linked with Sheet1. (only Sheet2 is visible inscreen)
    All I need is ,The range A4 should be focussed in sheet2. and data should always go into sheet1 in very hidden mode.


    Private Sub cmdSUBMIT_CLICK()
    ActiveWorkbook.Sheets("Sheet1").Activate
        If cboName.Value = "MICHEL" Then
        Range("A4").Show
        Range("A4").Select
        ElseIf cboName.Value = "ANDY" Then
        Range("A101").Show
        Range("A101").Select
    End if

    Hope the explanation is clear. Any help please. Thanks in advance
    Last edited by sivdin; 05-17-2011 at 10:10 AM.

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