+ Reply to Thread
Results 1 to 2 of 2

Vba rename file when cell of another workbook is updated

  1. #1
    Forum Contributor
    Join Date
    10-07-2015
    Location
    cyprus
    MS-Off Ver
    Microsoft 365
    Posts
    183

    Vba rename file when cell of another workbook is updated

    I am new in VBA and I have trouble to refer to proper range/cell.

    I have a workbook "cargoes 2016" used as database with 3 worksheets. The main worksheet "recap" allocates a "ref" number (column "c") to each new entry formatted "2016XX001, 2016XX002......" and sorts the entry per this ref nr.

    I have already a macro which creates automatically a workbook "calc sheet" for each new reference I enter in "cargoes 2016". This works perfectly.

    I would like that each time I update the column "AI" of Cargoes 2016 / recap for a specific ref, my code goes in the specific folder to find the file whose name includes the related "ref" nr and rename this file adding at the end of the pre-formatted name the value of the "ai" column.

    For example, if in Cargoes 2016 / recap, I input a value in the column "ai" of the ref "2016xx003", the code goes to the specific folder, find the workbook whose title includes 2016xx003 and add at the end the value of Cargoes 2016 / recap/column Ai for 2016xx003.....

    here is the code I work on until now but obviously I don't know how to refer to the correct row/cell.....can someone help?

    Please Login or Register  to view this content.


    Please Login or Register  to view this content.
    Last edited by mariec_06; 12-30-2015 at 11:20 AM.

  2. #2
    Forum Contributor
    Join Date
    09-03-2015
    Location
    IE
    MS-Off Ver
    2003 - 2016
    Posts
    258

    Re: Vba rename file when cell of another workbook is updated

    Also posted:
    http://www.ozgrid.com/forum/showthread.php?t=198064
    http://www.mrexcel.com/forum/excel-q...k-updated.html
    http://forum.excel-pratique.com/exce...ed-t72169.html

+ 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] Copy a sheet, rename it by value in range then export product to new workbook and rename
    By MagicMan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2015, 07:24 PM
  2. Replies: 0
    Last Post: 02-06-2015, 04:50 PM
  3. Replies: 1
    Last Post: 07-19-2013, 04:34 PM
  4. [SOLVED] Macro to Rename Worksheet Tab with Workbook File Name
    By sonyap in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2013, 05:00 PM
  5. [SOLVED] Identify workbook with specifc text in consecutive rows and move/rename file
    By me_melb in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-13-2012, 07:00 PM
  6. Rename workbook depending on Cell value
    By Adam1986 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-19-2010, 04:54 AM
  7. Run Macro(save workbook) after cell updated
    By titch in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-05-2006, 04:00 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