Results 1 to 4 of 4

Thread: Switching Between workbooks while Form is running on one of the workbook

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    4

    Switching Between workbooks while Form is running on one of the workbook

    Hi,

    I have a VBA program tht runs a VB form ,The user requirement is to switch between workbooks while they r using forms tht r already open and r avaliable in the taskbar.I am unable to do this as the form is running and it cant switch to another workbook tht is already open.But they are able to view the file if they open the file from Start->Run-> .

    Could any of you share ur expertise asap??

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Switching Between workbooks while Form is running on one of the workbook

    Originally posted by khader
    Hi,

    I have a VBA program tht runs a VB form ,The user requirement is to switch between workbooks while they r using forms tht r already open and r avaliable in the taskbar.I am unable to do this as the form is running and it cant switch to another workbook tht is already open.But they are able to view the file if they open the file from Start->Run-> .

    Could any of you share ur expertise asap??
    1) VB form... pop up from excel or actual vb.?
    2) What code are you using atm?
    3) Proper variables/objects or the selection/range object?
    4) Use a drop down or two on the form to list open/available workbooks/sheets.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    4

    Re: Re: Switching Between workbooks while Form is running on one of the workbook

    Originally posted by Ecniv
    1) VB form... pop up from excel or actual vb.?
    2) What code are you using atm?
    3) Proper variables/objects or the selection/range object?
    4) Use a drop down or two on the form to list open/available workbooks/sheets.

    Hi Ecniv,
    I am running the Vb form on excel by programming it using VB for Application (VBA) my code reads something like this

    start form()
    userform1.show()
    end sub

    userform1.activate()
    listbox1.additem("a")
    listbox1.additem("a")
    listbox1.additem("a")
    end sub

    -------

    while running the userform1.activate
    i would like to open up another excel file ,if you can gimme ur email id i can send in the file so thth the scenario is a bit clear?

    my email id is [email protected]

    Thanks

    Khader

  4. #4

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    4

    Re: Re: Switching Between workbooks while Form is running on one of the workbook

    Originally posted by Ecniv
    1) VB form... pop up from excel or actual vb.?
    2) What code are you using atm?
    3) Proper variables/objects or the selection/range object?
    4) Use a drop down or two on the form to list open/available workbooks/sheets.
    Hi ,

    I seem to have fixed this problem ,I loaded the form in modeless format and used the workbook change events . thanks a lot anyways,

    Khader

Posting Permissions

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



Click Here to Expand Forum to Full Width