+ Reply to Thread
Results 1 to 8 of 8

ActiveX Button not working the way it should

  1. #1
    Registered User
    Join Date
    03-02-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    87

    ActiveX Button not working the way it should

    Hi!!!
    I have a workbook that has an ActiveX Button that opens another Workbook when clicked. It was working perfectly fine earlier. After clicking the button the linked workbook would open separately, but now when I click on the Button the linked file opens up but closes the Main File that contains the link.
    Any help on how to resolve this problem would be great...
    Thanks a lot...

  2. #2
    Registered User
    Join Date
    03-02-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: ActiveX Button not working the way it should

    Hi!!
    Please help with this... I'll try and explain better... On Workbook 'A', I have a button that opens another Workbook 'B'. Now, earlier when the button was clicked, both Workbook 'A' and Workbook 'B' used to be open.
    But now, when the button is clicked on Workbook 'A', Workbook 'B' opens but Workbook 'A' closes.
    I want both the Workbooks open.
    I hope I have explained it well.
    Thanks.

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: ActiveX Button not working the way it should

    please paste the code or the example in order for us to see what the issue is
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    03-02-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: ActiveX Button not working the way it should

    Workbook 'A' is open. This is the file that has a button, which when clicked opens Workbook 'B'.
    Earlier this was working perfectly. When the button was clicked Workbook 'A' would remain OPEN and Workbook 'B' would Open too. So, basically I used to have two Workbooks open at the same time.
    But now, when the button is clicked, Workbook 'B' opens up but Workbook 'A' closes. So now only one Workbook is open.
    I want both the Workbooks Open.
    Thanks...

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: ActiveX Button not working the way it should

    paste your code or your macro associated with the Activex button

    i believe your code is not working properly
    the fact it worked earlier is probably due coincidence rather than coding

  6. #6
    Registered User
    Join Date
    03-02-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: ActiveX Button not working the way it should

    This is the code for the button in Workbook A.
    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: ActiveX Button not working the way it should

    is that the complete code?

    there should no reason for your workbook to close with that code
    is there some code on workbook B that runs automatically to close workbook A?

    alternatively
    have you run Workbook A thru debug to see where it closes your current workbook?

  8. #8
    Registered User
    Join Date
    03-02-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: ActiveX Button not working the way it should

    Hi humdingaling!!!
    Thanks for your time... There is no code that closes Workbook 'A'...
    And after running it through Debug, it closes when the End Sub runs....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Form Button vs ActiveX Button Performance
    By Philb1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-07-2013, 05:21 AM
  2. [SOLVED] Change Background color of a Form Button or ActiveX Button
    By Aeneren in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-11-2012, 12:19 PM
  3. [SOLVED] ActiveX Command Button Not Working On Some Computers When Workbook Is Shared
    By Samuel K in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2012, 10:12 AM
  4. ActiveX calendar not working
    By Sasquatch in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-08-2011, 03:12 PM
  5. Working with ActiveX DLL
    By Avi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-02-2005, 07:10 AM

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