Showing archive results for 2008

May 1, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Change the Value and Color of a Spreadsheet Cell Based on the Sum of Other Cells in That Spreadsheet?

ScriptingGuy1

Hey, Scripting Guy! I’m new to Excel, and I was wondering how to change the color of a cell if specific requirements are met. I have a spreadsheet that has three columns of numbers; I’d like to add the numbers in each row and, if they total 100, set the text of a fourth column to “Yes” and color that cell green. If the numbers don’t total 100 I’...

Scripting Guy!VBScriptOffice
May 1, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Sort a Text File Based on a Specific Column in That File?

ScriptingGuy1

Hey, Scripting Guy! I have a text file composed of many different lines; each line has a number of fields, with the fields separated from one another by a tab character. I need to sort this text file based on the value of one of these fields. How can I do that?-- IR Hey, IR. You know, that’s an interesting question, if only because – oops, hold ...

Scripting Guy!scripting techniquesVBScript
Apr 30, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Read a Text File and Extract All the Text Enclosed in Double Quote Marks?

ScriptingGuy1

Hey, Scripting Guy! I’m trying to write a script that can extract all the values found between a set of double quote marks. I know how to read the text file, and I know how to output any information that I find. However, I can’t figure out how to extract all the characters between a set of double quote marks. Can you help?-- TM Hey, TM. Before w...

Scripting Guy!scripting techniquesVBScript
Apr 29, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Windows PowerShell to Determine the Number of Lines in a Text File?

ScriptingGuy1

Hey, Scripting Guy! I’m using Windows PowerShell to determine the record count (i.e., the number of lines) in a text file I just created. If the file has 2 lines, no problem; my script reports back a value of 2. If the file only has 1 line, however, I get back what looks to be the number of characters in the file. In other words, when I run the s...

Scripting Guy!Windows PowerShellscripting techniques
Apr 26, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Install Fonts Using a Script?

ScriptingGuy1

Hey, Scripting Guy! Is there any way I can install a font using VBScript?-- RS Hey, RS. As a general rule, the Scripting Guy who writes this column steers clear of popular culture. (Actually, it’s not just a general rule; popular culture has a restraining order which requires him to stay at least 100 yards away from it at all times.) Nevertheles...

Scripting Guy!VBScriptdesktop management