+ Reply to Thread
Results 1 to 2 of 2

adding a code to a new sheet

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    Amman
    MS-Off Ver
    Excel 2007
    Posts
    36

    adding a code to a new sheet

    hi everybody ..
    I have a code to put in the Sub Worksheet_Deactivate() ..
    But my problem is that sheet doesn’t exist at the beginning
    It will be added by a button click

    Please Login or Register  to view this content.
    So how can I add that code if the sheet has been added ???

  2. #2
    Registered User
    Join Date
    11-20-2012
    Location
    New York, NewYork
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: adding a code to a new sheet

    all you are missing is the "Work" in the"Worksheets.add" line... it should be:

    Please Login or Register  to view this content.
    Hope this helps.

+ 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