Excel_Blonde
New Member
- Joined
- Aug 8, 2018
- Messages
- 44
Hi All,
I've seen many posts with questions similar to my own but cant find one to solve my problem.
In fact I have a few issues which I will detail here, any solutions to any of them will be extremely helpful.
I have a report I export into excel, the report is multiple sheets each sheet being an individual record. I want to carry out analysis on this but the way the information is displayed isn't great. I have tried many ways of addressing this but having no luck...
1. So the first issue is I need to rename each sheet with a given cell value...typically (I4), there will be duplicates so need to add incremented suffixes. I say typically because it isn't always I4, so that opens up the next problem to be resolved. I would like to use a macro to look for a given term e.g Name and loop through all columns (Within that row) until a value is found and then move that value to I4 (which I guess needs to happen before the rename sequence).
2. Then I would like to create a new sheet at the beginning of the workbook named 'list' listing all worksheet names.
3. I then within each sheet need to look for the first instance of 'total' and loop through all columns (within that row) returning the first 4 values found within the new list sheet.
e.g
List sheet
[TABLE="width: 500"]
<tbody>[TR]
[TD]Sheet Name[/TD]
[TD]Planned S[/TD]
[TD]Planned R[/TD]
[TD]Actual S[/TD]
[TD]Actual R[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]8[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]12[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Geoff[/TD]
[TD]5[/TD]
[TD]8[/TD]
[TD]9[/TD]
[TD]12[/TD]
[/TR]
</tbody>[/TABLE]
I hope you are still with me, I am relatively new to VBA but have been able to create several useful Macro's, I eventually figure things out with help of forums like this so any help would be appreciated and I'm sure I can fill in the blanks.
I've seen many posts with questions similar to my own but cant find one to solve my problem.
In fact I have a few issues which I will detail here, any solutions to any of them will be extremely helpful.
I have a report I export into excel, the report is multiple sheets each sheet being an individual record. I want to carry out analysis on this but the way the information is displayed isn't great. I have tried many ways of addressing this but having no luck...
1. So the first issue is I need to rename each sheet with a given cell value...typically (I4), there will be duplicates so need to add incremented suffixes. I say typically because it isn't always I4, so that opens up the next problem to be resolved. I would like to use a macro to look for a given term e.g Name and loop through all columns (Within that row) until a value is found and then move that value to I4 (which I guess needs to happen before the rename sequence).
2. Then I would like to create a new sheet at the beginning of the workbook named 'list' listing all worksheet names.
3. I then within each sheet need to look for the first instance of 'total' and loop through all columns (within that row) returning the first 4 values found within the new list sheet.
e.g
List sheet
[TABLE="width: 500"]
<tbody>[TR]
[TD]Sheet Name[/TD]
[TD]Planned S[/TD]
[TD]Planned R[/TD]
[TD]Actual S[/TD]
[TD]Actual R[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]8[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]12[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Geoff[/TD]
[TD]5[/TD]
[TD]8[/TD]
[TD]9[/TD]
[TD]12[/TD]
[/TR]
</tbody>[/TABLE]
I hope you are still with me, I am relatively new to VBA but have been able to create several useful Macro's, I eventually figure things out with help of forums like this so any help would be appreciated and I'm sure I can fill in the blanks.