+ Reply to Thread
Results 1 to 3 of 3

Check Workbook

  1. #1
    Registered User
    Join Date
    10-11-2007
    Posts
    11

    Check Workbook

    I had this macro that would check if Spreadsheet "Wrong One" was the active spreadsheet the macro would end the program and tells us Wrong One was active. I have to transfer data from one spreadsheet to Wrong One daily, but the spreadsheet I am copying from is always changing. So, I created a macro to help the copy/paste/formatting go smoother, but sometimes i forget that the active workbbook is "Wrong One" and it runs the macro on the wrong workbook. I want to create a sub routine that will first check and make sure that spreadsheet "Wrong One" is not the active spreadsheet before it starts the rest of the process.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Thundermocos,

    Add tis to code to check if the sheet is active...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    10-11-2007
    Posts
    11
    Thanks Leith!

    I was using
    Please Login or Register  to view this content.
    instead of
    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)

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