Results 1 to 3 of 3

Activate sheet after open workbook?

Threaded View

proepert Activate sheet after open... 01-26-2010, 07:39 AM
PMO Re: Activate sheet after open... 01-26-2010, 08:16 AM
proepert Re: Activate sheet after open... 01-26-2010, 08:22 AM
  1. #1
    Forum Contributor
    Join Date
    11-17-2009
    Location
    PA USA
    MS-Off Ver
    Excel 2000
    Posts
    184

    Activate sheet after open workbook?

    On a command button in a userform, I have this code to open another workbook:

    Private Sub CommandButton4_Click()
    Dim MyWb1 As Workbook
    Workbooks.Open ("C:\pro\anvils.xls")
    Set MyWb1 = ActiveWorkbook
    End Sub
    Now I want to activate the sheet called "HDM Anvils" in the workbook we just opened.

    Thanks for any help.
    Last edited by proepert; 01-26-2010 at 08:23 AM.

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