Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, I am trying to insert a blank worksheet using the code: Sheets.add The problem is that the new worksheet inserts itself to the left of the active sheet. I would like it to appear at the end of the sheets e.g. Sheet 1, Sheet 2, Sheet 3, new sheet. Any help would be appreciated. Thanks -- JamesArchibald ------------------------------------------------------------------------ JamesArchibald's Profile: http://www.excelforum.com/member.php...o&userid=33284 View this thread: http://www.excelforum.com/showthread...hreadid=565087 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One of the joyful quirks of Excel. You could do it with VBA, but just as
easy to drag it over. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "JamesArchibald" <JamesArchibald.2bju1q_1153911305.6918@excelforu m-nospam.com wrote in message news:JamesArchibald.2bju1q_1153911305.6918@excelfo rum-nospam.com... Hi, I am trying to insert a blank worksheet using the code: Sheets.add The problem is that the new worksheet inserts itself to the left of the active sheet. I would like it to appear at the end of the sheets e.g. Sheet 1, Sheet 2, Sheet 3, new sheet. Any help would be appreciated. Thanks -- JamesArchibald ------------------------------------------------------------------------ JamesArchibald's Profile: http://www.excelforum.com/member.php...o&userid=33284 View this thread: http://www.excelforum.com/showthread...hreadid=565087 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
James,
Look at the 2nd argument to .Add. e.g. With ThisWorkbook .Sheets.Add , .Worksheets(.Worksheets.Count) End With NickHK "JamesArchibald" <JamesArchibald.2bju1q_1153911305.6918@excelforu m-nospam.com wrote in message news:JamesArchibald.2bju1q_1153911305.6918@excelfo rum-nospam.com... Hi, I am trying to insert a blank worksheet using the code: Sheets.add The problem is that the new worksheet inserts itself to the left of the active sheet. I would like it to appear at the end of the sheets e.g. Sheet 1, Sheet 2, Sheet 3, new sheet. Any help would be appreciated. Thanks -- JamesArchibald ------------------------------------------------------------------------ JamesArchibald's Profile: http://www.excelforum.com/member.php...o&userid=33284 View this thread: http://www.excelforum.com/showthread...hreadid=565087 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
This will do it: Sub addSheet() Sheets.Add after:=Worksheets(Worksheets.Count) End Sub ChasAA "JamesArchibald" wrote: Hi, I am trying to insert a blank worksheet using the code: Sheets.add The problem is that the new worksheet inserts itself to the left of the active sheet. I would like it to appear at the end of the sheets e.g. Sheet 1, Sheet 2, Sheet 3, new sheet. Any help would be appreciated. Thanks -- JamesArchibald ------------------------------------------------------------------------ JamesArchibald's Profile: http://www.excelforum.com/member.php...o&userid=33284 View this thread: http://www.excelforum.com/showthread...hreadid=565087 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cannot insert worksheet in exel - not available in insert menu | Excel Worksheet Functions | |||
Unable to Insert Worksheet/Move and copy worksheet Excel 2003 | Excel Worksheet Functions | |||
Wish to add a WORKSHEET but 'WORKSHEET' not open in 'INSERT' | Excel Worksheet Functions | |||
Why can't I insert a row in my worksheet? | New Users to Excel | |||
Can I auto insert a worksheet when I insert a value in a cell. | Excel Worksheet Functions |