Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think that a piece of code which traverses each row of your spreadsheet and
checks the beginning of each cell's value against your standard values will do what you need. i.e. (A column is an index, B column is the name field and so on) line_counter=1 While line_counter < range("blah").rows.count Activecell.Offset(1,0).Select // move down one row in A column if Left(Activecell.Offset(0,1).Value,12)="Your name : " then Activecell.Offset(0,1).Value=MID(Activecell.Offset (0,1).Value,13,999) // this leaves the remaining characters after the unwanted part in the B column cell endif line_counter=line_counter+1 Wend Hope this helps |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
HOW CAN ADD AND SUBTRACT WITH THE SEQUENCE OF CELLS | Excel Discussion (Misc queries) | |||
How do I add a column of cells, but IF a row has (), subtract? | Excel Worksheet Functions | |||
subtract 3 numbers and 2 cells | New Users to Excel | |||
How can I subtract cells in a row | New Users to Excel | |||
how to add or subtract from two cells into one | Excel Worksheet Functions |