+ Reply to Thread
Results 1 to 5 of 5

Command Button on form is activating sheet but not cell

Hybrid View

  1. #1
    Registered User
    Join Date
    08-03-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question Command Button on form is activating sheet but not cell

    Hi guys

    I have a problem with my user form / sheet.

    Ive created a work book that has 7 sheets, one of the sheets is called HOME the other one is BULKADD, I have a form that loads on the home sheet and when you click on a button called bulk on the form its meant to open the sheet called "BULKADD" and activate cell A2, when I do this every seems to be working but as soon as i start typing the text disappears and its actually being stored on the home sheet.

    here is the code:

    Private Sub CommandButton6_Click()

    Application.Goto Worksheets("BULKADD").Range("A2")

    Unload Me

    End Sub

    Thanks in advance

    Gema

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Command Button on form is activating sheet but not cell

    Try like this...

    Private Sub CommandButton6_Click()
    
    Worksheets("BULKADD").Select
    Range("A2").Select
    Unload Me
    
    End Sub


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    08-03-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Command Button on form is activating sheet but not cell

    Hi there

    Thanks for the reply, unfortunately ive already tried the string and it doesn't work either, the worksheet is coming up as requested, but when I start typing it looks like its typing into the BULKADD sheet but disappears once i hit enter or tab and appears on the HOME page.

    I've never come across it before and im stumped.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Command Button on form is activating sheet but not cell

    Check any sheet change event is there in BULKADD sheet and confirm.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Command Button on form is activating sheet but not cell

    Check whether any on change event present in BULKADD sheet and confirm

+ 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