Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Togglebutton with the triplestate turned to True

I have the following problem
I want to sort a column by using the togglebutton with the triplestat
turned to True

So if i click on the togglebutton once to be sorted by A
If i click second time to be sorted by B
and at last if i click for third time to be sorted by C

Is it possible? Because i cant manage it
Thanks in advance

Stathi

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Togglebutton with the triplestate turned to True

Just use a commandbutton and use a static variable to remember what was the
last sort column. Then put in a case statement to do the new sort based on
the stored column, change the caption on the button to the next sort, record
the column used (set the variable).

--
Regards,
Tom Ogilvy

"stakar " wrote in message
...
I have the following problem
I want to sort a column by using the togglebutton with the triplestate
turned to True

So if i click on the togglebutton once to be sorted by A
If i click second time to be sorted by B
and at last if i click for third time to be sorted by C

Is it possible? Because i cant manage it
Thanks in advance

Stathis


---
Message posted from http://www.ExcelForum.com/



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
ToggleButton to Unprotect/Protect all worksheets Kellascat Excel Discussion (Misc queries) 0 November 9th 09 07:30 PM
ActiveX ToggleButton Reset John Excel Discussion (Misc queries) 2 May 13th 09 11:27 PM
Help with togglebutton that displays jpg caj Excel Discussion (Misc queries) 2 March 7th 07 02:44 PM
Function to return True/False if all are validated as True by ISNU Tetsuya Oguma Excel Worksheet Functions 2 March 15th 06 10:28 AM
2 macros in a Togglebutton? Jorge[_2_] Excel Programming 1 August 11th 03 01:57 AM


All times are GMT +1. The time now is 06:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"