+ Reply to Thread
Results 1 to 4 of 4

coping row depend on number on the cell , i want to change the cell which has the value

  1. #1
    Registered User
    Join Date
    09-29-2013
    Location
    Egypt,Giza
    MS-Off Ver
    Excel 2003
    Posts
    78

    coping row depend on number on the cell , i want to change the cell which has the value

    hi
    how are you, i'm new in vba , i have sheet with macro , this macro coping data in the row rely on the number which contain in the Column (L) , and the copied data will be in the next sheet(2) with the same formats, my question is that i want to change this Column(l) with anther Column , how i do this ? you will find the macro in the attached



    Thank you very much
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: coping row depend on number on the cell , i want to change the cell which has the valu

    I'm having some trouble understanding what you mean. Can you provide a sample of what you want the result to be?
    1. Include a sample workbook with an example of the result you want
    2. Use [CODE] and [FORMULA] wrappers for your VBA code or excel formulas
    3. If your question has been answered, mark the thread as SOLVED and click on the "Add Rep" star to thank whoever helped you.

  3. #3
    Registered User
    Join Date
    09-29-2013
    Location
    Egypt,Giza
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: coping row depend on number on the cell , i want to change the cell which has the valu

    hi
    as you will see in the first picture the micro take the number in Column (L) and copying entire row depend on to sheet 2 in the count of the number in sheet 1 in Column( L) i want to change the Column (L) to be Column (A) as shown in the second picture

    Thank you very muchPicture 1.jpgPicture 2.jpg

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: coping row depend on number on the cell , i want to change the cell which has the valu

    Hazemrezo,
    I think I had wrote this code for you a while back. You need to change this line of code from Column L to column A.

    x(i, 12)

    INO

    x(i, 1)
    I have amended the exiting code by removing some unnecessary lines. I have also added another code on module 2 which deals if you want to use column A, but you need to have numbers in column A as you have now in column L.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formate A Cell Depend on Date
    By moazzamali in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-02-2014, 07:56 AM
  2. [SOLVED] Lock Cell Depend on List selection
    By vinaynaran in forum Excel General
    Replies: 3
    Last Post: 04-23-2012, 11:08 AM
  3. Drop down list depend on another cell value
    By Bakar in forum Excel General
    Replies: 1
    Last Post: 02-06-2012, 08:46 AM
  4. Number change color depend if left cell turn yellow
    By unley in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-01-2011, 02:38 AM
  5. Making the drop down list of a cell depend on another cell
    By Jarrod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2006, 01:45 AM

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