Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Meg Meg is offline
external usenet poster
 
Posts: 22
Default Archiving user selection from Drop Down (forms - combo box)

Is there a way when a user makes a selection from a drop down created by a
Forms combo box that this selection be archived into another excel sheet?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Archiving user selection from Drop Down (forms - combo box)

You could assign a macro to the dropdown (from the forms toolbar).

Option Explicit
Sub testme()
Dim NextCell As Range
Dim myDD As DropDown

Set myDD = ActiveSheet.DropDowns(Application.Caller)

With ThisWorkbook.Worksheets("Sheet1")
Set NextCell = .Cells(.Rows.Count, "A").End(xlUp)
If IsEmpty(NextCell) Then
'use this one
Else
'else come down one
Set NextCell = NextCell.Offset(1, 0)
End If
End With

If myDD.Value = 0 Then
'do nothing, the dropdown is empty
Else
With NextCell
.NumberFormat = "mm/dd/yyyy hh:mm:ss"
.Value = Now
End With
NextCell.Offset(0, 1).Value = Application.UserName
With myDD
NextCell.Offset(0, 2).Value = .List(.ListIndex)
End With
End If
End Sub



If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

Meg wrote:

Is there a way when a user makes a selection from a drop down created by a
Forms combo box that this selection be archived into another excel sheet?


--

Dave Peterson
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
Combo Box that allows user entry of values not on drop-down list donnadelayed Excel Discussion (Misc queries) 1 July 2nd 08 04:20 PM
Forms Combo Box Gilda Excel Worksheet Functions 1 February 25th 08 05:32 PM
Row Selection using Drop down/Combo boxes Ed Excel Discussion (Misc queries) 1 April 25th 07 08:53 PM
User Forms - Combo Boxes Michael Excel Dude Excel Discussion (Misc queries) 2 September 3rd 06 10:41 PM
Forms Combo Box customer master Excel Discussion (Misc queries) 3 July 17th 06 10:10 PM


All times are GMT +1. The time now is 12:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"