Showing tag results for VBScript

Jul 3, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Replace a Series of Variables Found in a Text File with Values Taken From That File?

ScriptingGuy1

Hey, Scripting Guy! I have a text file containing TSQL syntax. In this file are a number of variables: @P1, @P2, @p3, and so on, up through @P58. The bottom line of the text file contains replacement values for these variables; for example, I need to take the variable @P1 and replace it with the first value in the last line; I need to replace @P2...

Scripting Guy!scripting techniquesVBScript
Jul 2, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Summarize Information Found in a Spreadsheet Row?

ScriptingGuy1

Hey, Scripting Guy! I have an Excel spreadsheet that tracks daily time for our employees, indicating whether the employee worked on a given day or took some type of leave (paid leave, leave without pay, sick leave, etc.). Is there a way to output a report showing the various leave types taken by each employee, along with the dates those leaves we...

Scripting Guy!VBScriptOffice
Jun 30, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Copy Specified Sections of an .RTF File to a New Word Document?

ScriptingGuy1

Hey, Scripting Guy! I have large files output by a reservoir simulator, files I use to predict oil, water and gas movements in hydrocarbon reservoirs. These files are finite-difference numerical simulators, and work by timestep (i.e. a time interval, usually about 90 days); when they have finished calculating, they chuck out a bunch of data about ...

Scripting Guy!VBScriptOffice
Jun 28, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Prevent Office Excel From Turning My Imported Numbers Into Dates?

ScriptingGuy1

Hey, Scripting Guy! I have a CSV file, and every time I open that file in Office Excel my numbers get converted to dates. How can I import numbers as numbers?-- JR Hey, JR. You know, just yesterday the Scripting Guy who writes this column learned about Yelo, an interesting little company based in New York City. So what does Yelo do? Well, primari...

Scripting Guy!scripting techniquesVBScript
Jun 26, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Copy Files Based on Multiple Criteria?

ScriptingGuy1

Hey, Scripting Guy! How can I match multiple criteria in a file name? I need to copy all the files in a folder that are less than 24 hours old, and that have file names beginning with the letters FS, CG, or GPS. How can I do that?-- EM Hey, EM. You know, today is an exciting day at Microsoft; it’s the day when we get our Spam Notification. ...

Scripting Guy!VBScriptstorage