+ Reply to Thread
Results 1 to 1 of 1

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

  1. #1
    Registered User
    Join Date
    11-05-2004
    Posts
    21

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    I am using two of these codes for a worksheet that needs them both. However, the second one does not work when it is in with the first. It does work alone.
    Is there a way I can use these together?

    Thanks, Tawnee.

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Cells.Count > 1 Then Exit Sub
    If Target.Column <> 29 Then Exit Sub

    On Error GoTo errhandler
    Application.EnableEvents = False
    With Target.Offset(5, 5)
    If .Value = "" Then
    .Value = "X"
    Else
    .Value = ""
    End If
    End With

    errhandler:
    Application.EnableEvents = True
    End Sub

    Private Sub Worksheet_Change(ByVal Target As Excel.Range)

    If ActiveCell.Address = "$A$1" Then

    ActiveWorkbook.SaveAs FileName:="\\DTCNAS-ILSP002\Pricing\ExtendedLockCompleted\" & ActiveSheet.Range("as32")

    Else
    'Do Nothing
    End If

    End Sub
    Last edited by tawnee jamison; 04-20-2005 at 05:16 PM.

+ Reply to Thread

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