PC Review


Reply
Thread Tools Rate Thread

Adding new sheets to the right instead of the default left

 
 
Max
Guest
Posts: n/a
 
      11th Jan 2008
How could the line below so that new sheets are added to the right (instead
of the default left):

Set WSNew = Sheets.Add

Thanks


 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      11th Jan 2008
Oops, it should read as:

How could the line below be amended so that new sheets are added to the
right (instead
of the default left):
Set WSNew = Sheets.Add


 
Reply With Quote
 
Gary Keramidas
Guest
Posts: n/a
 
      11th Jan 2008

don't use both of these, just 2 examples


Sub test()
Dim wsnew As Worksheet
Set wsnew = Worksheets.Add(after:=Worksheets(Worksheets.Count))
Set wsnew = Worksheets.Add(after:=Worksheets("Sheet2"))
End Sub
--


Gary


"Max" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How could the line below so that new sheets are added to the right (instead of
> the default left):
>
> Set WSNew = Sheets.Add
>
> Thanks
>



 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      11th Jan 2008
Gary, thanks for the examples. Very helpful.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide Sheets to Left Q Seanie Microsoft Excel Programming 2 4th Mar 2011 12:38 PM
page shifted left, no left blue margin, no default on top Erich D. Microsoft Word Document Management 1 4th Feb 2010 05:30 PM
Set all sheets to see A1 as left top cell Diddy Microsoft Excel Programming 4 23rd Mar 2009 04:51 PM
can i put sheets on the left and right of my screen Steve Microsoft Excel Misc 1 15th Dec 2008 07:49 AM
Right-to-left issue (how to default to left-to-right) =?Utf-8?B?SmVlUGVl?= Microsoft Word Document Management 0 21st Oct 2005 02:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:05 AM.