Ask your own question, for FREE!
Computer Science 15 Online
OpenStudy (anonymous):

Which is the most efficient way to make a row of text bold in every worksheet in a file?

OpenStudy (anonymous):

use VBA

OpenStudy (anonymous):

Something like: Dim sheet As WorkSheet For Each sheet In ActiveWorkbook.Sheets sheet.Rows(1).Font.Bold=True Next sheet

OpenStudy (anonymous):

you can do the same from C# code too

OpenStudy (carlsmith):

Are you being precise when you say "most efficient", or do you just want an easy way to get it done? There's loads of ways you can parse a string.

OpenStudy (carlsmith):

What do you mean by worksheet? If it's some kind of plain text file, a program or some markup or something, it's simple enough. You need to be able to define which bits to modify, which will boil down to being able to define some pattern or condition for the computer to work with. It might be simple. If it's only the top lines you need bold, you'd do everything from the start of a worksheet, up until the first newline. You might have do something more sophisticated, see regular expressions, but it's not hard to do what I think you want to do. I'm not sure what you mean by each worksheet in a file?

OpenStudy (anonymous):

look at her previous questions - i guess "spreadsheet" means Excel spreadsheet in this case "row of text" should mean a row of cells filled with some text unfortunately guys here rarely specify exactly what they want... compare with http://stackoverflow.com - that's the way how adults do it :)

OpenStudy (anonymous):

sorry, "wroksheet", not "spreadsheet"

OpenStudy (carlsmith):

Ah, now I understand. Thank you kol. I thought it might have been some kind of markup based, document format or something. I thought 'row of text' meant a line. Nice one for deciphering that for me.

OpenStudy (anonymous):

anytime :)

OpenStudy (anonymous):

im trying to find the answer to this now but i cant seem to find the answer !

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!