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: 1
Default Print - Userform Multipage selection


Hi

I am trying to allow users to select the pages they would like to prin
- I have devoped the list box with the choices and employed the cod
below. I have initially sort for the selection to be pasted in a cel
and then I would transfer this to the print sheet array code. However
the result in the cell comes in a format which is broken up by a "box
style symbol between each selection and which the find, edit, replac
etc does not work. Can someone please help. See code below.

thanks

Ron

Option Explicit
Private Sub obMulti_Click()
ListBox1.MultiSelect = fmMultiSelectMulti
End Sub



Private Sub OKButton_Click()
Dim Result As String
Dim i As Integer

If ListBox1.ListIndex = -1 Then
Result = "Nothing"
Else
Result = ""
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) Then _
Result = Result & ListBox1.List(i) & vbCrLf
Next i
End If

Sheets("sheet1").Range("a7") = vbCrLf & Result
Unload Me


End Su

--
Sagaro
-----------------------------------------------------------------------
Sagaron's Profile: http://www.excelforum.com/member.php...fo&userid=2464
View this thread: http://www.excelforum.com/showthread.php?threadid=38229

 
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
Multipage on a userform browie Excel Programming 3 June 15th 05 01:34 AM
Multipage Userform Events SA3214 Excel Programming 7 April 13th 05 09:03 PM
Problems with the userform multipage Wilbo Excel Programming 0 October 19th 04 09:46 AM
Problems with the userform multipage Wilbo Excel Programming 1 October 19th 04 09:09 AM
MultiPage UserForm Michael J. Malinsky Excel Programming 2 July 16th 03 01:02 PM


All times are GMT +1. The time now is 11:10 AM.

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"