secretsqrl
New Member
- Joined
- Aug 15, 2008
- Messages
- 7
Hello,
I'm a VBA novice and normally can cobble something together based upon some of the fantastic work on this forum, but I have a complex issue that has multiple elements that I'm having a difficult time getting my head around.
I have a master worksheet that has 200 rows and looking for a script that can do the following:
1. Evaluate each row and copy the row x number of times into a new sheet based upon the information in Location column
a. If the Location is a single city then only copy the row once
b. If the Location is Global then the row needs to be copied 11 times representing all locations changing the location from Global to each of the 11 cities
2. When the location is Global, once all 11 rows have been copied and changed to each of the locations I also need to split the total cost(Column C) based on a percentage for each location. it will total 100% but will be different for each location and need the ability to change the values in the script as it could change over time.
Simple example: Master Spreadsheet
New worksheet with copied rows and changed values.
Any assitance would be greaty appreciated.
I'm a VBA novice and normally can cobble something together based upon some of the fantastic work on this forum, but I have a complex issue that has multiple elements that I'm having a difficult time getting my head around.
I have a master worksheet that has 200 rows and looking for a script that can do the following:
1. Evaluate each row and copy the row x number of times into a new sheet based upon the information in Location column
a. If the Location is a single city then only copy the row once
b. If the Location is Global then the row needs to be copied 11 times representing all locations changing the location from Global to each of the 11 cities
2. When the location is Global, once all 11 rows have been copied and changed to each of the locations I also need to split the total cost(Column C) based on a percentage for each location. it will total 100% but will be different for each location and need the ability to change the values in the script as it could change over time.
Simple example: Master Spreadsheet
New worksheet with copied rows and changed values.
Any assitance would be greaty appreciated.