+ Reply to Thread
Results 1 to 6 of 6

Excel code stopped working

Hybrid View

  1. #1
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Excel code stopped working

    maybe:
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
      on error goto XL90
      If Target.count > 1 Then Exit Sub
      application.screenupdating =False
    
      With OLEObjects("TempCombo")
        .Visible=false
        If Target.Validation.Type = 3 Then
           .Left = Target.Left
          .Top = Target.Top
          .Width = Target.Width + 15
          .Height = Target.Height + 5
          .ListFillRange = mid(Target.Validation.Formula1,2)
          .LinkedCell = Target.Address
          .Visible=True
        End With
      End If
    
    XL90:
      Application.ScreenUpdating = True
    End Sub
    If validationrules in the worksheet have been removed the code won't work. Start checking the worksheet.
    Last edited by snb; 09-28-2010 at 05:59 AM.



  2. #2
    Registered User
    Join Date
    09-23-2010
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    97

    Re: Excel code stopped working

    hmm tried the suggested code... validation rules were active.. but no luck.. thanks for your sugestion!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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