+ Reply to Thread
Results 1 to 2 of 2

Help extending the peramitors of a working VBA code

Hybrid View

howardjo Help extending the peramitors... 07-02-2008, 06:59 AM
Andy Pope What error do you get... 07-03-2008, 06:21 AM
  1. #1
    Registered User
    Join Date
    03-13-2007
    Posts
    71

    Help extending the peramitors of a working VBA code

    Morning All,

    I am currently using the code below without any problems.

    Private Sub Worksheet_Change(ByVal Target As Range)
      If Not Intersect(Target, Range("B3:x3")) Is Nothing Then
        Dim DataSH As Worksheet
        Set DataSH = Sheets("data")
        DataSH.Range("A:AG").AdvancedFilter action:=xlFilterCopy, copytorange:=Range("B10:AG10"), criteriarange:=Range("B2:X3")
      End If
    End Sub
    However, I now want to extend the Data.SH.Range to column EA. I have tried to simply change "A:AG" to "A:EA" and then the copytorange from "B10:EA10" but this causes an error in the code.

    I would really appriciate it if someone could show me where I am going wrong.

    Regards

    Howardjo

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480
    What error do you get exactly.

    Can you post small example workbook?
    Cheers
    Andy
    www.andypope.info

+ 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