+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18

Thread: Dropbox choice runs macro Error ??

  1. #16
    Registered User
    Join Date
    05-30-2011
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Dropbox choice runs macro Error ??

    Okay! Nice , I think i was trying too hard , now my list on sheet 4 is clean, separated, and it works! I was able to get it to paste in cells a:15 to G:16(from sheet1) the only probleme is to get from A3 to E4 on sheet 4 , it copies the first column only . I see where it goes but when i try to change it the syntax never works! I can see the end of it and the understanding of this code, If i can just get this right ill be able to reproduce it and finish my project!
    Attached Files Attached Files
    Last edited by Eliann; 06-02-2011 at 04:21 AM.

  2. #17
    Forum Guru snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,151

    Re: Dropbox choice runs macro Error ??

    You could consider to use the help in the VBEditor and read what's written about currentregion.
    It means that in sheet4 you have to fill column B, C and D to get the full currentregion; space will suffice.
    The 'currentregion' is the most flexible approach.
    An alternative could be:

    Private Sub Worksheet_Change(ByVal Target As Range)
      If Target.Address = "$E$1" Then Sheets("sheet4").columns(1).find(target,,xlvalues,xlwhole).currentregion.offset(1).resize(,5).copy Sheets("sheet1").Range("A15") 
    End Sub



  3. #18
    Registered User
    Join Date
    05-30-2011
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Dropbox choice runs macro Error ??

    OH I got it!! Thanks for explaining!! It works perfectly now ! Thanks all for your help!!

+ 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.2.0