+ Reply to Thread
Results 1 to 2 of 2

Copy name of worksheet to an error worksheet

  1. #1
    Registered User
    Join Date
    05-26-2009
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    15

    Copy name of worksheet to an error worksheet

    Hello all,
    I am new to VBA, and I am having trouble figuring this one out. I'm working with a large set of data that is depth dependent. I only put data in where it changes, so I made two subroutines, one that completes a worksheet where I have entered data, and the other that cycles through the worksheets. There are occasional typos with the way the data is written, so I sometimes have problems with the program.

    What I would like to do is write the name of the worksheet with a problem to a list on another worksheet, so that I could run the entire cycle, then have a set of pages to go fix. Is there any way to do this? Thanks!

    My code:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by mineralfellow; 05-26-2009 at 02:29 PM.

  2. #2
    Registered User
    Join Date
    05-26-2009
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Copy name of worksheet to an error worksheet

    I fixed it myself by making a second subroutine:

    Please Login or Register  to view this content.
    with a test function to make sure the ErrorReport sheet exists. This takes the name of the problem sheet, moves to the error sheet, pastes the name of the problem sheet in the first empty cell, then returns to the original sheet.

+ 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