Results 1 to 2 of 2

Thread: Help ....will only take a second. Windows Selection

  1. #1

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Question Help ....will only take a second. Windows Selection

    Hi there,

    I have written a vb.net program (yay) and have asked it to pull up two excel files. How do i get vb.net to select one excel file and make it in focus ? Or in other words, how can i bring one window into focus ?

    in vba it is:
    Windows("Book 1").Activate()

    But i cant seem to work it out in VB.net

    Thanks

  2. #2
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036
    Hi

    objBook.Sheets("Sheet1").activate()

    regards
    Jorge

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