Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
First I created a forn and then . . .
I figured out how to create a list box for the various spreadsheets that I have and to be able to select 1 or more of them and then print them. I also have on my form a check box to select all or deselect all. See code below. + + + + 'Form Code 1 Private Sub CheckBox1_Click() Dim iloop As Integer For iloop = 1 To ListBox1.ListCount ListBox1.Selected(iloop - 1) = CheckBox1.Value Next End Sub Private Sub CommandButton1_Click() Unload Me End Sub Private Sub CommandButton2_Click() Dim iloop As Integer For iloop = 1 To ListBox1.ListCount If ListBox1.Selected(iloop - 1) = True Then Sheets(ListBox1.List(iloop - 1, 0)).PrintOut ListBox1.Selected(iloop - 1) = False End If Next End Sub Private Sub UserForm_Initialize() Dim sSheet For Each sSheet In Sheets If sSheet.Type = 3 Then 'Chart sheet ListBox1.AddItem sSheet.Name ElseIf WorksheetFunction.CountA(sSheet.Cells) 0 Then ListBox1.AddItem sSheet.Name End If Next sSheet End Sub + + + + But what I need to do is. . . On ( sheet1,Column AC ) is a listing of Hyperlinks that I would like to do the the same way. List in my list box and with a check box be able to select one or more then hit my print button that I created. Does anyone know how I can do this? Thank you for your help RK |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
So frustrated! Please help! | Excel Discussion (Misc queries) | |||
Frustrated | New Users to Excel | |||
Frustrated Professor | Excel Worksheet Functions | |||
Frustrated Cook | Excel Worksheet Functions | |||
Frustrated with Factorials | Excel Programming |