VBA rename multiple worksheets based on cells in one excel sheet and reciprocally, rename the excel cells based on excel worksheets -


thank reading post , taking time answer me.

search on prior questions , answers reveal answer renaming single worksheet (or multiples) based each time on over each worksheet (i.e. rename worksheet based on name inscribed in "b1"). looking bit different please.

my sole experience vba consists of "copy paste commands" appreciate if gave out little snippets of information each bout of programming in answer :).

am looking use specific excel sheet, let's call "summary" modifying name on excel sheet modifies directly name of each excel worksheets (they're created), , vice versa, modifying excel name of each worksheet modify content of excel sheet "summary".

ex: in excel sheet "summary" cell a5 a35 each contain information, "1", "2" "3" , on until "30".

running macro enable sheets after summary ("sheet 1" sheet 2" "sheet3" until "sheet 30") automatically renamed "1", "2", "3" , on.

likewise, renaming sheet "3" "test sheet" automatically change content of cell "a7" "3" "test sheet".

your appreciated.

thank , regards,

johanssen

try below code..

sub test()      on error resume next      each oldname in thisworkbook.workseets("sheet1").range("c1:c133")          thisworkbook.worksheets(oldname.value).name = oldname.offset(0, -1).value      next end sub 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -