Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 413
Default Use ListIndex to set Sheet order?

Listbox1 contains the names of sheets in the activeworkbook
which have been sorted by the user into the order they would
like them to appear in the workbook.

How can I use this to set the sheet order, please?

Regards.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.588 / Virus Database: 372 - Release Date: 13/02/2004


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default Use ListIndex to set Sheet order?

Hi Stuart,

Try this

For i = 0 To ListBox1.ListCount - 1
Sheets(ListBox1.List(i)).Move befo=Sheets(i + 1)
Next



Regards,
Shah Shailesh
http://members.lycos.co.uk/shahweb/
(Excel Add-ins)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 413
Default Use ListIndex to set Sheet order?

Many thanks, works fine.

Regards.

"Shailesh Shah" wrote in message
...
Hi Stuart,

Try this

For i = 0 To ListBox1.ListCount - 1
Sheets(ListBox1.List(i)).Move befo=Sheets(i + 1)
Next



Regards,
Shah Shailesh
http://members.lycos.co.uk/shahweb/
(Excel Add-ins)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.592 / Virus Database: 375 - Release Date: 18/02/2004


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
Populate order sheet with data from work sheet Veronica Johnson Excel Worksheet Functions 4 January 22nd 08 03:29 AM
sheet tab order Carl R[_2_] Excel Discussion (Misc queries) 2 November 25th 07 09:43 PM
How do I specify a tab order in a sheet RDL Excel Worksheet Functions 1 June 3rd 06 11:30 PM
Userform problem (Listindex) jgmiddel Excel Discussion (Misc queries) 1 April 26th 06 01:34 PM
ListIndex = cell value? Christy[_2_] Excel Programming 1 September 20th 03 03:19 PM


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