+ Reply to Thread
Results 1 to 6 of 6

Need copy the column d instead of column b, macro working fine for column b

  1. #1
    Registered User
    Join Date
    05-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    56

    Need copy the column d instead of column b, macro working fine for column b

    This macro is working fine, copying Column B if Column A is April and Column B<>0...I need some adjustments change Column B for D..... if column A is April and Column D <>0 then copy D...tried to change offset(,1) to offset(,3) didn't work...any ideas?

    Please Login or Register  to view this content.
    Thank you
    Last edited by audax48; 05-20-2012 at 02:56 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Need copy the column d instead of column b, macro working fine for column b

    Hi audax, please read Forum rules:


    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Select your code and click the [#] button at the top of the post window (if you are editing an existing post, press Go Advanced to see the [#] button). The result will appear like this in the post window ... and appear like this when posted:

    Please Login or Register  to view this content.
    Last edited by zbor; 05-20-2012 at 02:51 PM.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Need copy the column d instead of column b, macro working fine for column b

    Hmm.. I think it should work.. Did you change ,1 to ,3 in both parts?

  4. #4
    Registered User
    Join Date
    05-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Need copy the column d instead of column b, macro working fine for column b

    thank you....if you say both parts of the offset...the second offset work fine copy in W2 column D but doesn't get the info from the first offset copy something else i don't know why

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Need copy the column d instead of column b, macro working fine for column b

    How about change to .Resize(, 4).Copy

  6. #6
    Registered User
    Join Date
    05-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Need copy the column d instead of column b, macro working fine for column b

    it doesn't work

+ 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