+ Reply to Thread
Results 1 to 3 of 3

Copy the active sheet

  1. #1
    Registered User
    Join Date
    08-29-2006
    Posts
    62

    Copy the active sheet

    I use a workbook for a medical equipment with several sheets. The first sheet contains all of the supplies needed for that instrument. If two instruments are needed, we copy/paste/create a copy in the same workbook. I created a macro with a button that will copy the first sheet into a new workbook, leaving the original in place. But if I have a Sheet 2, the macro refers to Sheet 1 . For example Sheet 1 has the button, and I copy/paste/create a copy, creating Sheet 2, and click the macro button on Sheet 2, the macro goes back to Sheet 1 to copy.

    Visual basic has:

    Please Login or Register  to view this content.
    as the first line. Is there something like

    Please Login or Register  to view this content.
    that I could use?
    Last edited by VBA Noob; 05-15-2008 at 04:23 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Mary,

    Please read forum rules below. I have wrapped your code and move to programming.

    Try

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    08-29-2006
    Posts
    62

    Thanks

    Thank You. That is what I needed.

+ 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