Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
how to use VBA to name sheets ?
I have a file that i do not know how many sheet are there in before i need to copy contain of C4 to name of sheets Thank for your help -- vumia ----------------------------------------------------------------------- vumian's Profile: http://www.excelforum.com/member.php...fo&userid=3649 View this thread: http://www.excelforum.com/showthread.php?threadid=56478 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
how to use VBA to name sheets ?
Sub Renamesheets()
dim sh as Worksheet for each sh in workbook.Worksheets sh.name = sh.Range("C4").Value Next end Sub would be my guess of what you want -- Regards, Tom Ogilvy "vumian" wrote: I have a file that i do not know how many sheet are there in before i need to copy contain of C4 to name of sheets Thank for your help. -- vumian ------------------------------------------------------------------------ vumian's Profile: http://www.excelforum.com/member.php...o&userid=36494 View this thread: http://www.excelforum.com/showthread...hreadid=564789 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
how to use VBA to name sheets ?
hi Tom Ogilvy, thank you for help, but there is a little problem here IF C4 OF PER SHEET IS SAME ? THERE IS A ERROR HERE ? How to popup for this case thank you for help one more -- vumian ------------------------------------------------------------------------ vumian's Profile: http://www.excelforum.com/member.php...o&userid=36494 View this thread: http://www.excelforum.com/showthread...hreadid=564789 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Multiple Sheets (Need to create 500 individual sheets in one workbook, pulling DATA | Excel Worksheet Functions | |||
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? | Excel Worksheet Functions | |||
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? | Excel Programming | |||
Macro for filter on protected workbook that works for all sheets, no matter what sheets are named? | Excel Programming | |||
Allocate Files to Sheets and Build a Master Sheet which Summarises All Sheets | Excel Programming |