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: 34
Default Move sheet to another document with variable name

Hello,

I am trying to find a way to move a worksheet to another document. The
document named is in a cell.

Sub MoveSheet()
'
' Range("B27").Activate
ActiveWindow.DisplayWorkbookTabs = True

Range("B5").Select
Selection.Copy
Sheets("Sheet1").Select
Sheets("Sheet1").Name = [b5]

ActiveSheet.Move After:=Workbooks("John Smith.xls").Worksheets(1)

End Sub

All files that I will be moving to will have the assocaites name, but
next time the Person will be Jane Smith or Joe Browm.

I would like to move the sheet to [A1].xls
Is this possible?

Glen Munro

 
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
When reopening document, images move BWill Excel Discussion (Misc queries) 1 December 17th 09 07:19 PM
Automatically move text from one document to another BB Excel Worksheet Functions 1 September 22nd 09 07:02 PM
how do I move excel document into word Linda Excel Discussion (Misc queries) 0 March 7th 08 12:00 AM
Checkboxs Move in Document Sherry Excel Discussion (Misc queries) 1 November 22nd 05 08:13 PM
How can I move my document from the very far right of the screen . Mim Excel Discussion (Misc queries) 3 February 25th 05 06:07 PM


All times are GMT +1. The time now is 05:45 PM.

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"