+ Reply to Thread
Results 1 to 3 of 3

Macro that duplicates excel file, changes a component in its name and in one input cell

  1. #1
    Registered User
    Join Date
    09-29-2021
    Location
    Bucharest
    MS-Off Ver
    2016
    Posts
    2

    Macro that duplicates excel file, changes a component in its name and in one input cell

    Hi,

    I would really appreciate your help with one problem I've been having:

    I need to create a macro that duplicates an excel file (the files has a name like "File_CITY1"). It also has to change the city component in the file name and in one input cell inside the file (for example to "File_CITY2").

    Is this possible?

    Thank you so much in advance.

  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
    44,086

    Re: Macro that duplicates excel file, changes a component in its name and in one input cel

    It's possible but you'd need to provide more detail and examples, including a sample of the file to be copied.
    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
    Registered User
    Join Date
    09-29-2021
    Location
    Bucharest
    MS-Off Ver
    2016
    Posts
    2

    Re: Macro that duplicates excel file, changes a component in its name and in one input cel

    I've just attached a file that contains an example of the formulas and data.

    Thank you.
    Attached Files Attached Files

+ 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. Inactive TreeView component after opening file
    By kasan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2017, 05:35 PM
  2. Open an Excel File from within a macro in Excel 2007 from user input
    By WarrenSmiley in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2015, 04:41 PM
  3. Replies: 0
    Last Post: 10-02-2013, 01:47 AM
  4. Macro to open a file, input value into a cell, and run a macro from file
    By wkhor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-11-2011, 03:00 AM
  5. Macro to check file exists and take input from the file
    By naidu9295 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-12-2010, 08:15 AM
  6. add automatically a component to component palette
    By Maileen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2006, 12:10 PM
  7. Calling .net Component from Excel Macro
    By j_koushik in forum Excel General
    Replies: 0
    Last Post: 09-30-2005, 01:26 AM

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