KurtWilliams
New Member
- Joined
- Jun 21, 2017
- Messages
- 3
Good Mornig,
I have some limited VBA experience, mostly through forum posts and recording but I haven't been able to figure this one out. I am trying to write a macro to take an excel file, save it to a static location and name it based on only SOME of the contents in a cell. THEN I want the macro to trim out some sensitive information and save it again to a DIFFERENT static location with a similar name but appended with " - Public"
The cell I need to target is always the same format but has varying contents for dates, city and panel, it is a merged cell B2-O2, and the contents are similar to this (including the carriage returns):
Daily Schedule
Date: 13-Mar-2020
City: 99
Panel: 77987 - Detroit Area Representatives
What I would like it to do is isolate "Daily Schedule&" "&Panel:77987 and then append that with " - Panel Copy" as the name to save the first copy, then have my code cut out columns K & L and then save again but this time change the file name so that the appended part is " - Public Copy"
Anyone able to help me with writing the VBA to parse the cell and set the "save as" names? Thanks in advance!
I have some limited VBA experience, mostly through forum posts and recording but I haven't been able to figure this one out. I am trying to write a macro to take an excel file, save it to a static location and name it based on only SOME of the contents in a cell. THEN I want the macro to trim out some sensitive information and save it again to a DIFFERENT static location with a similar name but appended with " - Public"
The cell I need to target is always the same format but has varying contents for dates, city and panel, it is a merged cell B2-O2, and the contents are similar to this (including the carriage returns):
Daily Schedule
Date: 13-Mar-2020
City: 99
Panel: 77987 - Detroit Area Representatives
What I would like it to do is isolate "Daily Schedule&" "&Panel:77987 and then append that with " - Panel Copy" as the name to save the first copy, then have my code cut out columns K & L and then save again but this time change the file name so that the appended part is " - Public Copy"
Anyone able to help me with writing the VBA to parse the cell and set the "save as" names? Thanks in advance!