+ Reply to Thread
Results 1 to 4 of 4

condetional copy from tow columns to anothers

  1. #1
    Registered User
    Join Date
    08-19-2010
    Location
    jersey
    MS-Off Ver
    Excel 2007
    Posts
    49

    condetional copy from tow columns to anothers

    am working with a data in coulmn E and want to move only the cells with data to column i....
    i have a code for macro that work only for 517 cells of column E_ i think somthing wrong with the code_ and sometimes i have more than 1000 of cells data so this macro wouldn't help very much
    now i want the macro to move also the value of reference from column B and put it in column H so i can know the reference number of each value in coulomn i.....and without that i will be confused.......hope for some help and thanks
    the attached pic expline and follow is my code
    Please Login or Register  to view this content.
    Attached Images Attached Images

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: condetional copy from tow columns to anothers

    Hi abdi1

    The syntax for the cells function
    Cells(Row_Number,Column_Number)

    Please Login or Register  to view this content.
    Last edited by pike; 02-16-2011 at 02:58 AM. Reason: add rRow
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    08-19-2010
    Location
    jersey
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: condetional copy from tow columns to anothers

    Quote Originally Posted by pike View Post
    Hi abdi1

    The syntax for the cells function
    Cells(Row_Number,Column_Number)

    Please Login or Register  to view this content.
    hi pike and thanks very much for help me.....
    i'v used ur code it's works very good but it move only the first 34 cell values from column B and E ......some times i have data along the column i want to move it.....so could u help in fix this problem......and thanks in advance.
    by the way...in ur code..the one that i'v quoted......i found that we should chang
    Please Login or Register  to view this content.
    in to
    Please Login or Register  to view this content.
    just to make the code work properly

  4. #4
    Registered User
    Join Date
    08-19-2010
    Location
    jersey
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: condetional copy from tow columns to anothers

    Quote Originally Posted by abdi1 View Post
    hi pike and thanks very much for help me.....
    i'v used ur code it's works very good but it move only the first 34 cell values from column B and E ......some times i have data along the column i want to move it.....so could u help in fix this problem......and thanks in advance.
    hi
    i found the solution
    i'v changed this code
    Please Login or Register  to view this content.
    in to
    Please Login or Register  to view this content.
    and that work very good

    thanks for everyone in this Great fourm

    i appreciate

+ 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