+ Reply to Thread
Results 1 to 4 of 4

VBA - copy cell value duplication issue

  1. #1
    Registered User
    Join Date
    06-18-2012
    Location
    Gisburn
    MS-Off Ver
    Excel 2010
    Posts
    10

    VBA - copy cell value duplication issue

    Hi everyone,

    I have a bit of VBA code that is causing me a bit of a headache. Everything does what it should bar one little bit.

    The code checks to see if column A in a particular sheet has a value. If it does, then it copies a corresponding value from a particular cell within another sheet.

    The issue is the row highlighted in red. It seems to be an exception within itself. Whenever I run this code, it copies value B2, to column B in the other sheet around 30+ times than it is actually required. I've checked to make sure that cell A has no value, and it is completely blank.

    Can anyone see how this should be rectified?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VBA - copy cell value duplication issue

    Hi Dream Ahead,

    Do you want the B2 Value every time or should you recode that line:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    06-18-2012
    Location
    Gisburn
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: VBA - copy cell value duplication issue

    Hi,

    Yes I want it to constantly take the value of B2.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VBA - copy cell value duplication issue

    But just that value gets entered 30+ times more than it should?

+ 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