+ Reply to Thread
Results 1 to 4 of 4

Macro not looking at all sheets

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2003
    Posts
    16

    Macro not looking at all sheets

    Hi all

    Hope you can help me. I am stuck on a macro im writing. It is only looking at the active sheet. I need it to look at all the sheets in the workbook.

    Please see current coding below.

    Please Login or Register  to view this content.
    Thank you.
    Heinrich

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Macro not looking at all sheets

    You've told it to look at the active sheet,

    Please Login or Register  to view this content.
    Are you trying to get it to write to multiple sheets?

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Macro not looking at all sheets

    Hi Andrew

    Thank you for your reply.
    No only to look at multiple but write to the one i run the macro in.

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Macro not looking at all sheets

    At the moment your macro is set to only read data from sheet 1 in each workbook it opens.

    If you defined a new variable as:

    Please Login or Register  to view this content.
    Then you could modify your code like this:

    Please Login or Register  to view this content.

+ 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