Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA - Insert new sheet as the last sheet


Good Morning All,

I have a spreadsheet with a lovely piece of code that inserts a shee
into the workbook via a button.

The sheet is inserted to the left of the sheet with the button.

Is there a way to get the sheet to be inserted to the right of th
sheet with the button?

I am probably being a bit thick - I apologise in advance!!

Thanks,

MoonWeaze

--
MoonWeaze
-----------------------------------------------------------------------
MoonWeazel's Profile: http://www.excelforum.com/member.php...nfo&userid=211
View this thread: http://www.excelforum.com/showthread.php?threadid=26273

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default VBA - Insert new sheet as the last sheet

Hi Moon Weazel,


ActiveWorkbook.Worksheets.Add After:=ActiveSheet


---
Regards,
Norman



"MoonWeazel" wrote in message
...

Good Morning All,

I have a spreadsheet with a lovely piece of code that inserts a sheet
into the workbook via a button.

The sheet is inserted to the left of the sheet with the button.

Is there a way to get the sheet to be inserted to the right of the
sheet with the button?

I am probably being a bit thick - I apologise in advance!!

Thanks,

MoonWeazel


--
MoonWeazel
------------------------------------------------------------------------
MoonWeazel's Profile:
http://www.excelforum.com/member.php...fo&userid=2119
View this thread: http://www.excelforum.com/showthread...hreadid=262739



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
insert sheet tab is not functioning and can't add new sheet LoLo Excel Worksheet Functions 5 April 2nd 23 07:06 PM
excel sheet bootom half sheet goes behind top part of sheet rob Excel Worksheet Functions 2 January 17th 09 01:28 AM
Duplicate sheet, autonumber sheet, record data on another sheet des-sa[_2_] Excel Worksheet Functions 0 May 8th 08 06:56 PM
insert query into excell sheet to update excell sheet and pivot table vbsolo Excel Discussion (Misc queries) 0 August 24th 05 12:41 PM
Inserting a row in sheet A should Insert a row in sheet B, removing a row in Sheet A should remove the corresponding row in sheet B Hannes Heckner Excel Programming 1 March 5th 04 09:10 AM


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