+ Reply to Thread
Results 1 to 2 of 2

Code to Close worksheet where data is being copied from

  1. #1
    Registered User
    Join Date
    01-15-2010
    Location
    Indiana, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Code to Close worksheet where data is being copied from

    I have macro that is copying data from worksheet A to Worksheet B. When the Macro finishes copying I want it to close worksheet b. The Macro runs under the Worksheet A. I've tried putting
    Please Login or Register  to view this content.
    but it is not closing anything. How can I close worksheet B?
    Last edited by royUK; 01-20-2010 at 12:17 PM. Reason: add code tags

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Code to Close worksheet where data is being copied from

    It's hard to say without seeing the full code. The code that you posted closes the active workbook without saving, but your post talks about worksheets
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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