LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Worksheet copy problem

I would like to copy a worksheet to a new workbook using
direct syntax...unfortunately the activeworkbook does not
change to the new workbook when I do so...I would prefer
not to use the Worksheets("Sheet1") approach and instead
use wks (such as set wks = wkb.worksheets(1))

Here is my

Set wkb = thisworkbook
set wks = wkb.worksheets(1)
wks.copy

msgbox ActiveWorkbook.name

How can I make the ActiveWorkbook name change to the
newly created workbook

Thanks

Matt
 
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 to new worksheet problem tanyhart[_34_] Excel Programming 0 July 21st 06 01:36 PM
Copy Worksheet Formula Problem Datasort Excel Programming 3 October 27th 04 08:41 PM
Worksheet copy problem Jac Tremblay Excel Programming 3 May 29th 04 10:56 AM
worksheet copy problem dan Excel Programming 1 January 24th 04 02:26 AM
worksheet copy problem jim apostolidis Excel Programming 1 October 16th 03 01:38 PM


All times are GMT +1. The time now is 03:23 AM.

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

About Us

"It's about Microsoft Excel"