Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Move a worksheet position

I have a macro which pastes a worksheet into a 15 sheet workbook. How can I
get the new sheet into the desired poisition (2nd to last) programmatically?

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Move a worksheet position

with workbooks("book2.xls")
activesheet.copy _
befo=.sheets(.sheets.count)
end with

"Jimbob" wrote:

I have a macro which pastes a worksheet into a 15 sheet workbook. How can I
get the new sheet into the desired poisition (2nd to last) programmatically?

Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Move a worksheet position

Hi

Look at this:

Sheets(1).Move Befo=Sheets(Sheets.Count)
Sheets("Sheet1").Copy Befo=Sheets(Sheets.Count)

Regards,
Per

"Jimbob" skrev i meddelelsen
...
I have a macro which pastes a worksheet into a 15 sheet workbook. How can
I
get the new sheet into the desired poisition (2nd to last)
programmatically?

Thanks in advance


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Move a worksheet position

Terrific.
Thanks to you both.


"Per Jessen" wrote:

Hi

Look at this:

Sheets(1).Move Befo=Sheets(Sheets.Count)
Sheets("Sheet1").Copy Befo=Sheets(Sheets.Count)

Regards,
Per

"Jimbob" skrev i meddelelsen
...
I have a macro which pastes a worksheet into a 15 sheet workbook. How can
I
get the new sheet into the desired poisition (2nd to last)
programmatically?

Thanks in advance



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
Short cut to move back to last position seane Excel Discussion (Misc queries) 2 February 1st 06 08:18 AM
Move the position of spreadsheet on the screen Souris Excel Programming 2 August 23rd 05 05:04 AM
Change position of move or copy worksheet option in Excel JesseAviles Excel Discussion (Misc queries) 1 February 22nd 05 10:25 PM
Macro to move first name to last position in cell Annette[_4_] Excel Programming 2 September 16th 04 09:22 PM
Move Cell to Top/Left Position on Screen Phil Hageman[_3_] Excel Programming 4 January 10th 04 07:24 PM


All times are GMT +1. The time now is 12:34 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"