+ Reply to Thread
Results 1 to 6 of 6

Problem updating a cell value

  1. #1
    Forum Contributor
    Join Date
    06-23-2014
    Location
    Dubbo, Australia
    MS-Off Ver
    EXCEL 2019
    Posts
    180

    Problem updating a cell value

    Hi all,

    I have code which I am trying to use to update a cell with a revised 'date of birth'. The VBA fires on AfterUpdate event of a field called DOB on a userform.

    Please Login or Register  to view this content.

    Problem is, I am getting error 13 Type Mismatch on the second line.

    Any clues anyone?

    cheers
    Pete
    Pete
    Struggling Solutions Architect

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Problem updating a cell value

    What is CTOID? I mean is it meant to be a Text String? Or what exactly?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.
    Cheers!
    Deep Dave

  3. #3
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Problem updating a cell value

    Something like will work?

    Please Login or Register  to view this content.
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  4. #4
    Forum Contributor
    Join Date
    06-23-2014
    Location
    Dubbo, Australia
    MS-Off Ver
    EXCEL 2019
    Posts
    180

    Re: Problem updating a cell value

    Thanks NeedForExcel,

    CTOID is a number

    I have this working on another instance for changing a password on a login sheet in the same workbook
    Please Login or Register  to view this content.
    Sample workbook would realistically take too long to prepare!

    Pete

  5. #5
    Forum Contributor
    Join Date
    06-23-2014
    Location
    Dubbo, Australia
    MS-Off Ver
    EXCEL 2019
    Posts
    180

    Re: Problem updating a cell value

    Thanks Parth,

    Your clues provided the answer!
    Here's my updated code:

    Please Login or Register  to view this content.
    cheers
    Pete

  6. #6
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Problem updating a cell value

    thats grt pete

+ 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. Problem with query updating unlocked cell with protection on
    By jcox1953 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2014, 10:28 AM
  2. Problem with Updating charts
    By ExcelNUBs in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-12-2012, 02:38 AM
  3. Problem updating blocked cell
    By albertc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2012, 11:53 AM
  4. updating problem
    By joanwork in forum Excel General
    Replies: 1
    Last Post: 06-04-2012, 04:23 PM
  5. [SOLVED] problem with updating formula
    By Karen311261 in forum Excel General
    Replies: 4
    Last Post: 04-25-2012, 06:22 AM
  6. Problem updating formulas in one particular cell
    By abinayan in forum Excel General
    Replies: 1
    Last Post: 03-09-2011, 06:35 AM
  7. Problem with updating cell result
    By Salata in forum Excel General
    Replies: 3
    Last Post: 07-05-2007, 08:15 AM
  8. [SOLVED] Problem updating references
    By VanS in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-19-2005, 06:06 AM

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