+ Reply to Thread
Results 1 to 2 of 2

Copy Active Worksheet

  1. #1
    Forum Contributor
    Join Date
    07-12-2005
    Posts
    143

    Copy Active Worksheet

    Hi all,

    I just need to copy the active worksheet and paste in the same workbook then activate that new sheet. I know how to do this manually but i need the code to copy the sheet without referencing the actual name of the sheet (because the name of the activesheet willl obviously depend on which sheet i'm on).
    I tried recording the macro but this obviously returns the sheet name as part of the code - which is not quite what i want for subsequent sheets.

    Hope this is clear and if anyone wcould rustle up an answer before 3am tomorrow morning (it's 10.30here) i would really appreciate it.

    thanks a bundle,
    Chris

  2. #2
    Forum Contributor
    Join Date
    07-12-2005
    Posts
    143
    Just figured out how to do this by piecing together a couple of other lines from different places:

    Sub Macro1()

    ActiveSheet.Select
    ActiveSheet.Copy before:=Sheets(1)
    Application.Run "RefireBLP"

    End Sub

+ 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