- 
	
	
		
		
			
				
				
				
					get the value for list box into code
				
				
						
						
				
					
						
							Hi,
 
New to vba 
 
I have been given help to devise a list box of options  and I want to get the selected value for the list box into the following code:-
 
Select Case result 
Case Listbox value??? 
' 
' Send email as is  
' 
Item.Subject =  Item.Subject 
Cancel = False 
Case Listbox value??? 
' 
' Send message  restricted 
' 
Item.Subject =  "restricted"+Item.Subject 
Cancel = False 
 
Case Listbox value??? 
' 
' Send message  restricted staff
' 
Item.Subject =  "restricted staff" 
Cancel = False 
Case Listbox value???: 
' 
' do not send the email 
' 
Cancel = True 
 
End Select 
End If 
End Sub 
I would appreciate any help in this area
 
Cheers
						
					 
					
				 
			 
			
			
		 
	 
		
	
 
		
		
		
	
 
	
	
	
	
	
	
	
	
	
	
	
	
		
		
			
				
				Posting Permissions
			
			
				
	
		- You may not post new threads
 
		- You may not post replies
 
		- You may not post attachments
 
		- You may not edit your posts
 
		-  
 
	
	
	Forum Rules