+ Reply to Thread
Results 1 to 5 of 5

Using Loop Macros with RefEdit controll in userform

  1. #1
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Using Loop Macros with RefEdit controll in userform

    Hi Guys

    im trying to use a userform with 2 refedit controlls on it, one is input ant one is output.
    I have what i need to do down ok when only using one cell per refedit

    but here is where i am struggling

    I want to make it so if i select multiple cells it will do the process for each cell and output accordingly.

    the way i am doing it at the miniute is

    Please Login or Register  to view this content.
    but i dont know how to reference to a cell in the second range (it just uses all of them at once)

    the only way i can think of doing this is to use a collection but this caould be a bit more long winded that i would like.
    Last edited by FRIEL; 09-29-2010 at 05:42 AM.
    I dont like to use code i dont understand
    it makes it hard to use in other situations
    so please try to be as clear and patent as possible with me

    Criticism is welcomed

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

    Re: Using Loop Macros with RefEdit controll in userform

    Please Login or Register  to view this content.
    But simpler is:

    Please Login or Register  to view this content.
    Last edited by snb; 09-29-2010 at 05:08 AM.



  3. #3
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Re: Using Loop Macros with RefEdit controll in userform

    So simple

    thanks!
    Ill let you know how it goes

    what if my range is more than 1 coulmn and 1 row
    does it go down first or accross??

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

    Re: Using Loop Macros with RefEdit controll in userform

    I added a simpler solution after the first one.

  5. #5
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Re: Using Loop Macros with RefEdit controll in userform

    the first one works fine for me
    i am not actualy copying the cells over there are other things i am doing so i think that the first solution is more practical =D

    Thanks Buddy
    (rep added)

+ 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