Results 1 to 2 of 2

Macro for specific worksheets

Threaded View

  1. #1
    Registered User
    Join Date
    03-29-2012
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Macro for specific worksheets

    Hi

    I'm trying to amend my macro to only get data from a specific worksheet in multiple workbooks in a specific folder.

    I have very basic knowledge so am lost with it.

    This is the first bit of my code which currently means all worksheets in all workbooks are accessed rather than "sheet 1" which is all I want.

    Any help much appreciated.

    Sub allworkbooks()
    Dim MySummary As Workbook
    Dim MySummarySheet As Worksheet
    Dim ThisSheet As Worksheet
    Dim Thisbook As String
    Dim SumRowCt As Long
    Dim MyPath As String
    On Error Resume Next
    MyPath = "c:\Users\Claire\"
    Last edited by arlu1201; 03-29-2012 at 06:24 AM. Reason: Use code tags not quote tags.

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