+ Reply to Thread
Results 1 to 22 of 22

VBA project not allowing existing excel sessions to open

  1. #1
    Registered User
    Join Date
    02-17-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    48

    Cool VBA project not allowing existing excel sessions to open

    Workbooks that are opened prior to launching VBA project are not accessible while VBA Project is being used, another Excel session can be opened after VBA Project is launched which provides full excel functionality. What should I do how can user use the existing excel sessions which are opened prior to launching VBA Project. Please Help!
    Last edited by harry_1805; 02-23-2012 at 09:47 AM.

  2. #2
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: VBA project not allowing existing excel sessions to open

    Cross posted here.
    Good luck.

  3. #3
    Registered User
    Join Date
    02-17-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: VBA project not allowing existing excel sessions to open

    yes I wanted answer for this question, is it ok to do it?

  4. #4
    Registered User
    Join Date
    02-17-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: VBA project not allowing existing excel sessions to open

    Please help me if you have a answer.

  5. #5
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: VBA project not allowing existing excel sessions to open

    Please read the forum rules, specifically rule 8.

  6. #6
    Registered User
    Join Date
    02-17-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: VBA project not allowing existing excel sessions to open

    Iam sorry I haven't read this rule Thanks you have already provided with the link. Will do the same in that forum too. Let me know if you can give me a answer for this issue, how can i resolve this.

  7. #7
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: VBA project not allowing existing excel sessions to open

    I don't understand your question. I suspect you mean Excel workbooks rather than Excel sessions, because sessions are completely independent of each other.

  8. #8
    Registered User
    Join Date
    02-17-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: VBA project not allowing existing excel sessions to open

    yes excel workbooks, which is already opened, but iam unable to open them again if the VBA project is running.

  9. #9
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: VBA project not allowing existing excel sessions to open

    Why would you open them again if they are open?

  10. #10
    Registered User
    Join Date
    02-17-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: VBA project not allowing existing excel sessions to open

    For example, I have three excel files excel1, excel2 and excel3 opened and I have a VBA code excel which is project1 opened just now. If I run project1 vba code, I cannot move back to excel1 or excel2 or excel3 if I have to check for some data. VBA screen doesn't allow me to move back to those opened excel files. Where as if I open another excel from windows Start-> MS office-> MS Excel, then it works well.. Hope you understood what i meant.

  11. #11
    Registered User
    Join Date
    02-17-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: VBA project not allowing existing excel sessions to open

    to be more specific, I have a form in VBA and when its running, I cannot go back to the excel files which are opened in background, i cannot access them.

  12. #12
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: VBA project not allowing existing excel sessions to open

    You have to either run the form modelessly or add functionality to it to switch between open workbooks.

  13. #13
    Registered User
    Join Date
    02-17-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: VBA project not allowing existing excel sessions to open

    ok, which property should I change to make the form run modelessly or what functionality should i use to switch between open workbooks?

  14. #14
    Registered User
    Join Date
    02-17-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: VBA project not allowing existing excel sessions to open

    yeah done, now excel workbook opens but still it shows the form over the excel workbook.

  15. #15
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: VBA project not allowing existing excel sessions to open

    If you don't want that, you'll have to hide the form (or resize it so it's not in the way)

  16. #16
    Registered User
    Join Date
    02-17-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: VBA project not allowing existing excel sessions to open

    is there a way to minimize the form as per users discretion like we have on web brower.

  17. #17
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: VBA project not allowing existing excel sessions to open

    With a load of API calls, yes.
    See attached demo.
    Attached Files Attached Files
    Last edited by OnErrorGoto0; 02-23-2012 at 08:17 AM.

  18. #18
    Registered User
    Join Date
    02-17-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: VBA project not allowing existing excel sessions to open

    ok how to unable that?

  19. #19
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: VBA project not allowing existing excel sessions to open

    I've just added a demo file to my last post.

  20. #20
    Registered User
    Join Date
    02-17-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: VBA project not allowing existing excel sessions to open

    Thanks a lot buddy, its works really well. Thanks for help me out again, you have been awesome!

  21. #21
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: VBA project not allowing existing excel sessions to open

    Glad to help.

    Please don't forget to mark the thread solved (see the FAQ link at the top of the page).

  22. #22
    Registered User
    Join Date
    02-17-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    48

    Red face Re: VBA project not allowing existing excel sessions to open

    Sure will do that, Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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