Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am new to programming. This site has been very helpful for me. I am
learning as I am working. I would need to write a macro to name columns based on the sheet name. This code will run through all the sheets in the workbook and fill the first row, based on the sheet name. If sheetname name is name1 then column names are ( Col1, Col2, Col3) ( these will be written in the first row) Else if sheetname is name2 then column names are (some1 some2) Could someone please give me a sample template of code. I am thinking of select case statement. But do not know how to write this in VBA code. Thank you very much for you help in advance sheela |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Based new sheet names on cell value | Excel Programming | |||
Change sheet names based on cell contents | Excel Programming | |||
Add data to 2007 table based on column names? | Excel Programming | |||
Dynamic list based on sheet names | Excel Programming | |||
Find a time value in one column based on names in another | Excel Discussion (Misc queries) |