ThrottleWorks
Excel Ninja
What I am trying to achieve
* I have excel file with multiple sheets
* Number of sheets will vary with every file
* All the sheets are named as Sheet1, Sheet2, Sheet3 in serial order
* I have 4 key words, for example Porsche, Yamaha, Ducati, Honda
* Atleast one key word will be present in each worksheet
* Location of the keywork is not fix, so I do control F by vba to locate
* I will search the 1st keyword in sheet1 (going in serial order using For each loop)
* Find Porcshe, if found, activesheet will be named Sheet1
* Will move to next sheet, search Porsche, if found Sheet1 Copy1
* In this manner I will search all the sheets with key word Porsche
* Then I will move to next Key Word which is Ducati
* If found then Sheet2, Sheet2 Copy1, Sheet2 Copy2
* I will search all the 4 key words in this manner
* If key word is not found, I will not rename the sheet
* The purpose I am doing this is, I want to derive data from
* Sheet1 to Sheet4 (and their kids)
* If data is not present in Sheet1 then I will search it in Sheet1 Copy1
* These are 4 tables named as Sheet1, Sheet2, Sheet3, Sheet4
* So ideally table 1 will be sheet1 but if the table is split then it will be Sheet1 and sheet1 copy1
I am trying to write this code since last 2 days. But not able to complete.
I got confused with multiple dependent combinations I wrote.
Can anyone please help me in this.
* I have excel file with multiple sheets
* Number of sheets will vary with every file
* All the sheets are named as Sheet1, Sheet2, Sheet3 in serial order
* I have 4 key words, for example Porsche, Yamaha, Ducati, Honda
* Atleast one key word will be present in each worksheet
* Location of the keywork is not fix, so I do control F by vba to locate
* I will search the 1st keyword in sheet1 (going in serial order using For each loop)
* Find Porcshe, if found, activesheet will be named Sheet1
* Will move to next sheet, search Porsche, if found Sheet1 Copy1
* In this manner I will search all the sheets with key word Porsche
* Then I will move to next Key Word which is Ducati
* If found then Sheet2, Sheet2 Copy1, Sheet2 Copy2
* I will search all the 4 key words in this manner
* If key word is not found, I will not rename the sheet
* The purpose I am doing this is, I want to derive data from
* Sheet1 to Sheet4 (and their kids)
* If data is not present in Sheet1 then I will search it in Sheet1 Copy1
* These are 4 tables named as Sheet1, Sheet2, Sheet3, Sheet4
* So ideally table 1 will be sheet1 but if the table is split then it will be Sheet1 and sheet1 copy1
I am trying to write this code since last 2 days. But not able to complete.
I got confused with multiple dependent combinations I wrote.
Can anyone please help me in this.