+ Reply to Thread
Results 1 to 2 of 2

Auto Select Sheets With Condition

Hybrid View

  1. #1
    Registered User
    Join Date
    03-28-2012
    Location
    jeh
    MS-Off Ver
    Excel 2010
    Posts
    2

    Auto Select Sheets With Condition

    hi,

    example ive 80 sheets.all sheets is name as number from 1 to 100.all 100 sheets is randomly,not sorted.
    it can be from range 50:28 is = 80 sheets as the 50 is the first sheet and 28 is the last sheet.

    within the sheets that i select example i want range 50:30 (probably about 40 sheets within the range) ..
    i want excel to automatic select sheets that has 20 value in A1..

    is it possible to autoselect those sheets that has 20 in A1 without i go through all sheets and select one by one?

    so when it autoselect the sheets,then i can just right click and move it in front.

    thanks guys

  2. #2
    Registered User
    Join Date
    03-28-2012
    Location
    jeh
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Auto Select Sheets With Condition

    this is what i try but its not working

    Sub MoveSheets1()
    Dim ws As Worksheet
    For Each ws In Worksheets
    ws.Activate
    If Sheets("50:30").Range("A1").Value = 20 Then
    Sheets.Move Before:=Sheets(1)
    End If
    End Sub

+ Reply to Thread

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