+ Reply to Thread
Results 1 to 5 of 5

If a cell contains a certain value, then paste next to it.

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    21

    If a cell contains a certain value, then paste next to it.

    Hi all,

    New to the forum and VBA. Here's my problem:

    I have data in cell C9 and a range of months in column H. I am typing the date in C8, and I want to paste the data in column I in the cell immediately next to the cell in H that contains the date.

    This is what I have so far, but I think I am way off (I think I need variables :/):

    --------------------
    Please Login or Register  to view this content.
    --------------------

    If anyone could please help me I would appreciate it!

    Thanks!
    Last edited by Cutter; 09-21-2012 at 08:17 PM. Reason: Added code tags

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: If a cell contains a certain value, then paste next to it.

    Please note Forum Rules regarding puting Code within code Tags
    Click on star (*) below if this helps

  3. #3
    Registered User
    Join Date
    09-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: If a cell contains a certain value, then paste next to it.

    Sorry.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: If a cell contains a certain value, then paste next to it.

    I found a way around it. This code uses an InputBox for finding the date and then pasting next to it in the 2 adjacent columns:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: If a cell contains a certain value, then paste next to it.

    @ DAK266

    Welcome to the forum.

    Based on your last post it seems that you solved your issue on your own but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

+ 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