Excel VBA code to change cells value in a group of files in a certain folder
- or -
Post a project like this2158
$50
- Posted:
- Proposals: 4
- Remote
- #2005581
- Completed
Description
Experience Level: Intermediate
Looking for VBA that allows us to change 2 specific cells in every excel file in a certain folder. it is a group of about 30 monthly reports that I want to change 2 cells that hold the month and the year. Month and year are integers.
For each excel file in "S:\Month End Closing\F9\Live Production\Departmentals\" I want to change the named range "CurrentMonth" and "CurrentYear". Let's pick up those values from sheet1 of the file we are creating the VBA in.
So cell B3 in VBA worksheet might hold the month value as a number (1-12) and B4 would hold the year such as 2018. Those values would be the new values in those named ranges in all the other files in the folder
For each excel file in "S:\Month End Closing\F9\Live Production\Departmentals\" I want to change the named range "CurrentMonth" and "CurrentYear". Let's pick up those values from sheet1 of the file we are creating the VBA in.
So cell B3 in VBA worksheet might hold the month value as a number (1-12) and B4 would hold the year such as 2018. Those values would be the new values in those named ranges in all the other files in the folder
David Z.
100% (8)Projects Completed
9
Freelancers worked with
7
Projects awarded
64%
Last project
22 Jan 2023
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies