Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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


--
chris100
------------------------------------------------------------------------
chris100's Profile: http://www.excelforum.com/member.php...o&userid=25166
View this thread: http://www.excelforum.com/showthread...hreadid=478055

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy Active Worksheet


Just figured out how to do this by piecing together a couple of other
lines from different places:

Sub Macro1()

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

End Sub


--
chris100
------------------------------------------------------------------------
chris100's Profile: http://www.excelforum.com/member.php...o&userid=25166
View this thread: http://www.excelforum.com/showthread...hreadid=478055

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Value of Active cell and 25 rows above to a diff worksheet ash3154 Excel Discussion (Misc queries) 4 September 2nd 09 12:56 AM
Macro to copy active worksheet to new workbook Macca Excel Discussion (Misc queries) 1 May 25th 08 02:07 PM
copy active cell value,find the pasted value in different worksheet [email protected] Excel Worksheet Functions 2 July 9th 06 09:56 AM
Copy data from 3rd worksheets and pasting to active worksheet KimberlyC Excel Programming 4 June 29th 05 02:09 AM
Copy worksheet from Active workbook into all other open workbooks TroyB[_2_] Excel Programming 0 February 10th 04 10:29 AM


All times are GMT +1. The time now is 07:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"