+ Reply to Thread
Results 1 to 10 of 10

Text is changed to current date date when row is selected. No idea why?

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    23

    Text is changed to current date date when row is selected. No idea why?

    Hello all,

    I have been creating a workbook for my daughter to record sales info. I finished it yesterday and sent it to her as an email attachment.

    One of the sheets has order numbers (eg. BB001, BB002 etc.) in column A, and the cells are formatted as TEXT. The problem I have is that when she clicks on a Row Number, say to highlight the whole row, or to insert a new row, the Order Number immediately changes to a the Current Date.

    I have no idea why this is happening as we are both using Excel 2007 and this error does not occur on the original workbook which is saved on my computer.

    As I don't know what is causing the problem, I am struggling to research the issue in order to find a solution.

    Any assistance would be graciously appreciated.

    Rob.

  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: Text is changed to current date date when row is selected. No idea why?

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. 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 demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    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
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Text is changed to current date date when row is selected. No idea why?

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. 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 demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    12-04-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Text is changed to current date date when row is selected. No idea why?

    Hi Martin,

    Thank you for your speedy response. I fear I may not have explained myself adequately, sorry.

    I am not trying to automate anything, in fact I need to stop an unknown automatic error. The changeover from a number to a date is happening all by itself, but only on the workbook 'copy' that I emailed to my daughter. As such I am unable to upload even a pretend sheet that will show the error occuring.

    I'll contact my daughter, and get her to email her copy back to me. Maybe the error will carry with it. If it does, I'll be able to do as you request.

    Thank you thus far.

    Rob

  5. #5
    Registered User
    Join Date
    12-04-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Text is changed to current date date when row is selected. No idea why?

    Hello again martin,

    Ok, can't get hold of my daughter at the moment, so I have made a mockup workbook which describes the issue.

    Hope this helps,

    Rob

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Text is changed to current date date when row is selected. No idea why?

    it may be some weird custom format has been set in her excel, go to format /cells /custom and delete every thing in there

  7. #7
    Registered User
    Join Date
    12-04-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Text is changed to current date date when row is selected. No idea why?

    Hi Martin,

    I've looked though the original workbook; cell formats, table formats, VBA codes, formulas, and I can't find
    anything unusual, although as I said, I'm not exactly sure I know what to look for. Anyway, I guess you are probably correct.
    I'll do as you suggest and I'll feed back the results.

    Thank you for your input,

    Rob

  8. #8
    Registered User
    Join Date
    12-04-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Text is changed to current date date when row is selected. No idea why?

    Hi Martin,

    I am afraid to report that to my severe embarrassment, I have discovered that the issue was with a VBA code within the original workbook. I recalled that when I first set about creating it, I remember researching automatic data input, and I remember looking at some VBA code and trying it out, but did not have much success with it, simply due to the fact that I was not quite sure how to use it.

    I have discovered that when the workbook is opened, a notification to enable Macros appears. The DATE issue causing rise to this thread is initiated when Macros are enabled, so I had another look round with the VB editor, and found it. I have obviously neglected to delete the code.

    I have now deleted it from the original workbook and the problem has gone, Unfortunately, I neglected to copy it, to include in this message beforehand (I fear you may have had some small interest in seeing it, if only for future reference), sorry about that too.

    I assume at this time that my daughter either selects 'Enable Macros' via the same prompt, or has her Macro security settings set to allow them. Either way, I am confident now that I can resolve the issue.

    That said, I would like to thank you very much for your input, and would ask that you accept my apologies for any inconvenience caused.

    Best regards

    Rob

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Text is changed to current date date when row is selected. No idea why?

    good that you found it!

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

    Re: Text is changed to current date date when row is selected. No idea why?

    Yeah - that was baffling!

+ 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. [SOLVED] Need average of days for date values from date to current day that updates current date
    By FinGhost in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-12-2013, 04:41 PM
  2. UserForm text box always passes the current date not the date entered
    By g8r777 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-23-2012, 02:13 PM
  3. Replies: 6
    Last Post: 01-16-2012, 02:39 PM
  4. adding current date then after saving the file current date function stops
    By gotbitey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2011, 02:15 PM
  5. [SOLVED] Want to change text in a cell on sheet2 if date changed in sheet3.
    By Kezza in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-09-2006, 09:40 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