Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default delete info via userform ?

Hi all,
I have a userform which as 3 dropdown lists ( the info. for these lists
comes from named ranges ) and 2 cmd.buttons ( 1 which adds the choices from
the dropdowns to columns A,B,C, then they are sent to columns D,E,F via
absolute refs. and then sorted Desc.) cmd.button 2 closes the userform.
If an incorrect entry is made, is it possible to have a userform which would
have a dropdown list which would display all info ie. A1,B1,C1, which can
then be deleted ?

Hope this is clear

Thanks for any help/suggestions.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default delete info via userform ?

This macro can inspire you. Mylist is cell area.
Option Explicit
Public Cleared As Boolean

Private Sub ComboBox1_Change()
Dim i As Integer
If Not Cleared Then
With Sheets(1)
i = Application.Match(Me.ComboBox1.Value, Range("MyList"), 0)
Cleared = True
.Range("MyList")(i).EntireRow.Delete Shift:=xlUp

End With
End If
Cleared = False
Me.Hide
End Sub


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default delete info via userform ?

Alen32,
I've got the new userform to show( with the combo.box ) but when clicking
the dropdown button, there is no list to choose from, of what I want to
delete.
what have I done wrong ?
ps. still learning this stuff, please be kind :)


"Alen32" wrote:

This macro can inspire you. Mylist is cell area.
Option Explicit
Public Cleared As Boolean

Private Sub ComboBox1_Change()
Dim i As Integer
If Not Cleared Then
With Sheets(1)
i = Application.Match(Me.ComboBox1.Value, Range("MyList"), 0)
Cleared = True
.Range("MyList")(i).EntireRow.Delete Shift:=xlUp

End With
End If
Cleared = False
Me.Hide
End Sub



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
create a userform to populate a diagram with the forms info Mic Excel Discussion (Misc queries) 0 July 22nd 05 08:07 PM
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below Annette[_4_] Excel Programming 2 September 21st 04 02:40 PM
Userform Info Sony[_3_] Excel Programming 1 August 31st 04 07:07 PM
Bringing info from userform to spreadsheet David Excel Programming 3 December 8th 03 03:09 AM
Repost: Looking for info on how to program a userform to use filters Tom Ogilvy Excel Programming 9 August 7th 03 03:41 AM


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