+ Reply to Thread
Results 1 to 4 of 4

cutting and pasting in VBA

  1. #1
    Registered User
    Join Date
    07-26-2011
    Location
    leicester england
    MS-Off Ver
    Excel 2007
    Posts
    20

    cutting and pasting in VBA

    Hello

    I am trying to compare row A to row C and if they match cut the value from row B and paste it in row d. if the Value. If they do not match shift Column A and B down one row, and continue checking until it has gone through all the data.

    Any help would be appreciated
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: cutting and pasting in VBA

    ben,


    The following code will compare column a to column c and if it matches move column b data to column d.
    It does not insert extra row. Do you really want to do that?

    Please Login or Register  to view this content.
    Charles

    There are other ways to do this, this is but 1 !
    Be Sure you thank those who helped.
    IF YOU'RE SATISFIED BY ANY MEMBERS RESPONSE TO YOUR ISSUE PLEASE USE THE STAR ICON AT THE BOTTOM LEFT OF THE POST UNDER THEIR NAME.

  3. #3
    Registered User
    Join Date
    07-26-2011
    Location
    leicester england
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: cutting and pasting in VBA

    Hello
    I want to Copy rows 1 and 2 down so that A and C become equal. then the macro can carry on

  4. #4
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: cutting and pasting in VBA

    ben5496,

    Are you saying
    If Column A has 21 and column C has 22 ( same row) you want column A to insert a row and then enter 22 in column A?

+ 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