+ Reply to Thread
Results 1 to 2 of 2

Dim Sheet as Variable and Select

  1. #1
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Ventura, united States
    MS-Off Ver
    Excel 2010
    Posts
    346

    Dim Sheet as Variable and Select

    Any idea what's wrong here?


    Sub Define_Sheet()

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Dim Sheet as Variable and Select

    sub define_sheets

    Dim Sheet As Sheets
    Dim i as integer
    For i=1 to Sheets.count
    with sheets(i)
    .select
    If .Name = Left("Header", 6) Then
    Set DTS = ActiveSheet
    End If
    end with
    Next i

    End Sub

+ 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