+ Reply to Thread
Results 1 to 6 of 6

Find cell value in another workbook and place date stamp in row

  1. #1
    Registered User
    Join Date
    09-14-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Find cell value in another workbook and place date stamp in row

    Hi there,

    I am relatively new to VBA, and in particularly any form of scripting/programming so any help would be appreciated

    I have two workbooks, one for active clients and one for all clients (past and present) that I am working with. What I am after is a macro that once I have I finished with a client, it will put a data stamp in my other workbook called "AllClients.xlsx",

    I am trying to search for the value I have in one workbook in cell "D6" of my activesheet, which is a unique client identification number, and look for the same value in another workbook called AllClients.xlsx in Sheet "AllClients", in Column A, and insert the date in the correct row in column D



    What I am getting is Run-time error '1004' Application-defined or object-defined error.



    The code that I do have is as follows:

    Please Login or Register  to view this content.
    Any help would be greatly appreciated
    Last edited by cladinshadows; 09-22-2013 at 08:46 AM.

  2. #2
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: Find cell value in another workbook and place date stamp in row

    Hi & Welcome. Try to add "file" reference (note original error disappears, but other appears)
    Please Login or Register  to view this content.
    Please * if you like the answer

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Find cell value in another workbook and place date stamp in row

    Hi, cladinshadows,

    I would not use path and Cell as variables due to the fact that they are VBA-Keywords. And I guess the line
    Please Login or Register  to view this content.
    will be the one to raise an error as Cells means all the cells within a worksheet (I guess you imagined that to be the found cell to refer to).

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Registered User
    Join Date
    09-14-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Find cell value in another workbook and place date stamp in row

    Thanks for the replies
    I didn't know that cell and path where vba keywords

    At the moment Run-time error '1004' is not ocuring and in its place is Runtype error '13', I have done some searching in google to no avail.....
    The code below is what is highlighted in yellow

    Please Login or Register  to view this content.

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Find cell value in another workbook and place date stamp in row

    Hi, cladinshadows,

    maybe try using
    Please Login or Register  to view this content.
    Are you sure you want to search in Formulas and not in Values?

    Ciao,
    Holger

  6. #6
    Registered User
    Join Date
    09-14-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Find cell value in another workbook and place date stamp in row

    Thanks HaHoBe,

    Changing it to values worked like a charm!! I played around with the code and this is what I came up with and is working fine!!

    Please Login or Register  to view this content.
    Last edited by cladinshadows; 09-23-2013 at 04:30 PM.

+ 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. Replies: 6
    Last Post: 02-08-2013, 08:29 AM
  2. Range.Find to find column and place value in next available cell in one line
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2011, 10:41 AM
  3. Date/User stamp for named workbook range
    By roden_uk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2009, 10:53 AM
  4. [SOLVED] Create a button that will date stamp todays date in a cell
    By Tom Meacham in forum Excel General
    Replies: 3
    Last Post: 01-10-2006, 09:10 PM
  5. [SOLVED] bringing data from one workbook to another using a date stamp func
    By tifosi3 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-04-2005, 08:06 PM

Tags for this Thread

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