Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Adding new sheets to the right instead of the default left


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" wrote in message
...
How could the line below so that new sheets are added to the right (instead of
the default left):

Set WSNew = Sheets.Add

Thanks



  #2   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Adding new sheets to the right instead of the default left

Gary, thanks for the examples. Very helpful.


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
change from left-to-right as default setting Rauf A. Khokhar Setting up and Configuration of Excel 0 June 11th 08 09:48 AM
Make left-to-right default direction hmm Excel Discussion (Misc queries) 1 March 18th 08 03:37 PM
Make left-to-right the default hmm Charts and Charting in Excel 0 March 11th 08 04:46 PM
Default left-to-right columns for imported files hmm Excel Discussion (Misc queries) 2 February 25th 08 08:00 AM
Excel - change default 'next worksheet' shortcut key to left hnd s KiwiCarol Setting up and Configuration of Excel 3 October 2nd 06 09:32 PM


All times are GMT +1. The time now is 06:53 AM.

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"