LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default coding tech



Sub sb(lb As MSForms.ListBox, bDel As Boolean)
msg = MsgBox("is it continue?", vbYesNo, "")
If msg = vbNo Then Exit Sub
For i = 1 To lb.ListCount - 1
If lb.Selected(i - 1) Then Call sbxx(lb.List(i - 1), bDel)
Next
Application.CutCopyMode = False
End Sub

Private Sub cmdDelDes_Click()
msg = MsgBox("is it continue?", vbYesNo, "")
If msg = vbNo Then Exit Sub
xx=1
End Sub

i want to make the sub routine.
2 lines of the upper code make function.

namely,

Sub sb(lb As MSForms.ListBox, bDel As Boolean)
call sby
For i = 1 To lb.ListCount - 1
If lb.Selected(i - 1) Then Call sbxx(lb.List(i - 1), bDel)
Next
Application.CutCopyMode = False
End Sub

Private Sub cmdDelDes_Click()
call sby
xx=1
End Sub

sub sby
~~~~~~
end sub


*** Sent via Developersdex http://www.developersdex.com ***
 
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
Primary and Secondary tech locator Craig860 Excel Discussion (Misc queries) 1 March 11th 10 05:27 AM
Excel Charts in Science & Tech. Vijay Chary Charts and Charting in Excel 0 November 4th 08 04:33 PM
Mainframe Tech Blog [email protected] Excel Discussion (Misc queries) 0 April 5th 08 12:07 PM
TECH SUPPORT NUMBERS Alan New Users to Excel 6 March 28th 05 04:06 PM
High Tech Question ? Ray Batig Excel Programming 0 January 8th 04 01:43 AM


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