sassriverrat
Well-known Member
- Joined
- Oct 4, 2018
- Messages
- 655
Hello All-
I've asked this question before a number of different ways but I've never gotten an answer that worked.
I have a workbook that's name when it saved comes from a series of cells.
The file name when it's saved is formatted as follows and we'll just say it's from Sheet1
A1 A2 A3 - A4
A1 is a number
A2 is a letter
A3 is a name
A4 is a name
The file gets saved at C:\Users\Bridge\Desktop\Noons\Noon-Arrivals\ 'the Folder I'm trying to generate
So here is where I'm not sure how the code should be written. The path above is defined in,
let's say, cell B2 from Sheet1
Where there is the 'The folder I'm trying to generate piece above, the files are archived based on the number in A1, and in increments of 50 (currently). So currently I have 377 files (and building). If the number in A1 is 40, for example, then that file is saved in the first folder (1-50). If the value of A1 is 352, then it's saved in the folder named (351-400), but I'm having to manually create these folders to and then save these. I was wondering if someone knew how to write a code where it could make the folder directory based on the increment value (let's say a number set in B3 of sheet1). Hopefully this makes sense.
Thanks!
I've asked this question before a number of different ways but I've never gotten an answer that worked.
I have a workbook that's name when it saved comes from a series of cells.
The file name when it's saved is formatted as follows and we'll just say it's from Sheet1
A1 A2 A3 - A4
A1 is a number
A2 is a letter
A3 is a name
A4 is a name
The file gets saved at C:\Users\Bridge\Desktop\Noons\Noon-Arrivals\ 'the Folder I'm trying to generate
So here is where I'm not sure how the code should be written. The path above is defined in,
let's say, cell B2 from Sheet1
Where there is the 'The folder I'm trying to generate piece above, the files are archived based on the number in A1, and in increments of 50 (currently). So currently I have 377 files (and building). If the number in A1 is 40, for example, then that file is saved in the first folder (1-50). If the value of A1 is 352, then it's saved in the folder named (351-400), but I'm having to manually create these folders to and then save these. I was wondering if someone knew how to write a code where it could make the folder directory based on the increment value (let's say a number set in B3 of sheet1). Hopefully this makes sense.
Thanks!