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

I am writing a custom Access routine to populate a specific worksheet in an
Excel Workbook (the access transferspreadsheet and outputto will not let you
specify a specific worksheet). i've got this working. However, if the
worksheet I want to write to does not exist, I have to add it (no problem
here either).

However, I would like to add it as the last worksheet in the workbook, and
have not figured out how to do this. When I select the last worksheet, and
then add the new one, it inserts it before the last sheet rather than placing
it behind it. How can I, programmatically, change the order so the new sheet
becomes the last one in the workbook?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Move worksheet within workbook

Dale,
Sheets.Add after:=Worksheets(Worksheets.Count)

"Dale Fye" wrote:

I am writing a custom Access routine to populate a specific worksheet in an
Excel Workbook (the access transferspreadsheet and outputto will not let you
specify a specific worksheet). i've got this working. However, if the
worksheet I want to write to does not exist, I have to add it (no problem
here either).

However, I would like to add it as the last worksheet in the workbook, and
have not figured out how to do this. When I select the last worksheet, and
then add the new one, it inserts it before the last sheet rather than placing
it behind it. How can I, programmatically, change the order so the new sheet
becomes the last one in the workbook?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Move worksheet within workbook

Thanks,

I'll give it a try

"Toppers" wrote in message
...
Dale,
Sheets.Add after:=Worksheets(Worksheets.Count)

"Dale Fye" wrote:

I am writing a custom Access routine to populate a specific worksheet in
an
Excel Workbook (the access transferspreadsheet and outputto will not let
you
specify a specific worksheet). i've got this working. However, if the
worksheet I want to write to does not exist, I have to add it (no problem
here either).

However, I would like to add it as the last worksheet in the workbook,
and
have not figured out how to do this. When I select the last worksheet,
and
then add the new one, it inserts it before the last sheet rather than
placing
it behind it. How can I, programmatically, change the order so the new
sheet
becomes the last one in the workbook?



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
move a worksheet from one workbook to another Wizard475 Excel Discussion (Misc queries) 1 February 13th 09 07:50 PM
Why can't you just Move a worksheet in Excel '07 to new workbook? Rania Excel Worksheet Functions 1 November 15th 07 08:51 PM
Copy/Move Worksheet from one Workbook to another Anney Excel Discussion (Misc queries) 3 December 15th 06 12:42 PM
How do I move the worksheet tabs to the top of the workbook? Deborah Green Excel Discussion (Misc queries) 10 February 16th 06 03:21 PM
MOVE Worksheet to another workbook ? MAS Excel Programming 6 July 3rd 05 10:37 PM


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