Results 1 to 3 of 3

List box macro

Threaded View

  1. #1
    Registered User
    Join Date
    10-12-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    List box macro

    hi,

    I have a macro,

    Sub Add_Drop_Down_Menu_Selection()
    With Selection.Validation
    .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, _
    Formula1:="=$C$1:$C$39"
    .IgnoreBlank = True
    .InCellDropdown = True
    End With
    End Sub
    It lists all the contents from C1 to C39 and it runs for a selected sheet.

    I need to modify the macro so my list box is in Sheet 1 and the contents C1 to C39 is in Sheet 2.

    Thanks
    Last edited by jeffreybrown; 10-12-2012 at 11:47 PM. Reason: Added code tags for new user...Please do so next time...Thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1