+ Reply to Thread
Results 1 to 3 of 3

VBA to search multiple worksheets

  1. #1
    Registered User
    Join Date
    02-05-2013
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2010
    Posts
    39

    VBA to search multiple worksheets

    I have some VBA code i wish to run a search on three different worksheets for a value but I can't figure out how to search more than one worksheet. here is the code I have so far.

    Please Login or Register  to view this content.
    On the line With Sheets("plant").Range("A1:A5000") I need to specify the range to be ("A1:A5000") but on three worksheets.

    Please help, I am only new to this and it's driving me mad!

    Mr_Mango
    Last edited by mr_mango81; 04-12-2013 at 01:57 AM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: VBA to search multiple worksheets

    Hi, Mr_Mango ,

    maybe like this:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    02-05-2013
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: VBA to search multiple worksheets

    Holger,
    You are a Champion, thats works perfectly! Thankyou very much for your effort!

    Mr_Mango

+ 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