Consulting

Results 1 to 6 of 6

Thread: Copy Active Sheet to new workbook

  1. #1

    Copy Active Sheet to new workbook

    I have a workbook that works like a book of templates and I want one button to copy the selected sheet to a new workbook. I used record macro and I right clicked on the sheet..Move or Copy... etc to produce this result.

    Sheets("Config VI").Select
        Sheets("Config VI").Copy
    problem is that i want the same button for every sheet. Any help would be greatly appreciated.

    Thanks

  2. #2
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Hi Marvin! Welcome to the board!


    Use the ActiveSheet method ...

    ActiveSheet.Copy
    And check out the VBA tags when posting. It will make your code look like mind.

  3. #3
    Aw Hell that was easy! lol THANKS!

  4. #4
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Hi Marvin,

    Welcome to VBAX! I'm going to mark you thread solved, but so you know, you can do this yourself in future by using the Thread Tools menu at the top of your thread. A very cool feature!

    Cheers,
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  5. #5
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Quote Originally Posted by MarvinJ920
    Aw Hell that was easy! lol THANKS!
    It usually is! For me anyway, it's usually staring me in the face (and laughing more often than not)!

    Glad I could be of help!

    (Hey Ken! )
    Last edited by Ken Puls; 12-15-2004 at 02:42 PM. Reason: (sp)

  6. #6
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Hey Zack!

    Quote Originally Posted by firefytr
    It usually is! For me anyway, it's usually staring me in the face (and laughing more often than not)!
    No kidding, me too!
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •