Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to copy a sheet and rename it with the value of two cells from the source sheet?


Hi all,
I'm trying to copy a sheet as a picture and paste it in to a new shee
(all works well here!) but i also want to rename the sheet using th
text from cell B1 and cell B3 from the source sheet so it can b
identified easily later, here is the code i have but of course doesn
work.......if the text in B1 was Bob and the text in B3 was There the
rename the sheet "Bob There".

is this possible?
The line in blue doesnt work!

Regards,
Simon
Sub cardPicture()
Range("A1:I27").Select
Selection.CopyPicture Appearance:=xlPrinter, Format:=xlPicture
Sheets("Score Card").Select
Sheets.Add
ActiveSheet.Paste
ActiveWindow.DisplayGridlines = False
ActiveSheet.Select
ActiveSheet.Name = (Sheets("Score Card") Range("B1").Text An
Range("B3").Text)

End Su

--
Simon Lloy
-----------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...nfo&userid=670
View this thread: http://www.excelforum.com/showthread.php?threadid=54137

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 worksheet and rename sheet Ernst - EXE Graphics Excel Discussion (Misc queries) 4 July 25th 08 01:18 PM
Copy/Rename a sheet DK Links and Linking in Excel 1 March 20th 06 05:36 AM
Button to copy sheet, rename sheet sequencially. foxgguy2005[_3_] Excel Programming 9 June 17th 05 01:41 PM
Copy a sheet and rename it quartz[_2_] Excel Programming 4 March 24th 05 09:36 PM
copy Sheet and rename it! John Smith[_9_] Excel Programming 3 September 7th 04 06:23 PM


All times are GMT +1. The time now is 10:30 AM.

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"