+ Reply to Thread
Results 1 to 3 of 3

why does the wrong cell value get updated with this code

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Mumbai, IN
    MS-Off Ver
    Office 365
    Posts
    97

    why does the wrong cell value get updated with this code

    in the following code what i want is that if textbox has CTF in it then whatever value appears in tb1 shuld goto the range("CTF"). I have already been able to achieve this, but when person writes `st whatever value appears in tb1 should goto range("ST") and it does......but when i enter `st it also updates the same value in range("CTF"), can you please help

    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,118

    Re: why does the wrong cell value get updated with this code

    Suggest you post a sample workbook so the code can be seen in context.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: why does the wrong cell value get updated with this code

    Look on your Formulas Tab and then at your Names Manager. See where the Named Range of "CTF" is located.

    Is that the problem?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. Auto run the Code automaticaly when cell is updated
    By tharindudk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2013, 12:11 AM
  2. [SOLVED] VBA Code not unlocking specified cell...What am I doing wrong??????
    By storresrl in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-13-2013, 01:08 PM
  3. [SOLVED] Run Code When Cell is Changed - Where am i going wrong
    By JungleJme in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2012, 03:12 AM
  4. Pivot Tables all based on same data - goes wrong when updated via macro
    By Marc T in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2012, 06:43 AM
  5. Replies: 2
    Last Post: 12-28-2006, 02:58 PM

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