More than one customer of mine is reporting a "Permission Denied" error number 70 when the following lines are executed:
Dim objWMIService As Object
Set objWMIService = GetObject("winm...
I am using createTextfile to save file as a unicode file, with the name "index.asp". However, IIS5 only support ANSI, and UTF-8 format ASP file.
How can I save the file as UTF-8 Format?
Hello all,
Long story short, I'm working with a VBScript where I'm generating random character strings I'm using as "names":
For counter = 1 to 20
random_char = Chr(Int(26 * Rnd +...
I found an excellent Visual Basic code at http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20293519.html that can move the mouse and make it click. The code is...
Why do I get a "runtime error 339, MSCOMCTL.OCX or one of its dependencies not correctly registered: a file is missing or invalid" whenever I try to execute my Visual Basic Application?
Also...
Hello,
I have an excel file that need some information from Oracle database. In userform when I select a value from a combobox, vba should query this value in the oracle database and get me...
A fellow Moderator here created an excellent tool for the Mod team which helps us quickly query the database and find open and locked questions at a userid level so we can post scripts and beg...
I am trying to create a module that will allow me to delete duplicate rows of data. The code that I have is below, but it seems that the for-next statement never finishes. Any assistance any...
Hi,
I'm working on an automation application for a proprietary windows-based host emulator in Windows XP. The application is written in VB6 and works well at passing keys to the host emula...
Keeping text file closed, I want to start with basic steps to buid a routine to read from a text file and later write to it. I want solid operation and want some info on text file format. Is...
Hi experts:
In my VBA code I have a function that helps form database query String. The problem is that the String ends up to be very long (1000-2000 characters). When I test it with a MsgB...
I am using an ADO data control (MSADODC.OCX) as the DataSource of a DataGrid
(MSDATGRD.OCX). Just for this simple example, let's say I have a MS SQL
Server table that contains some names. I ...
How do I write to the console in vbscript, like C#'s console.writeline?
This isn't a question, but a posting of the VB error codes and the messages associated with them. Any error # not in this list maps out to "Application Specific"
3 Return without ...
Is there any way to pass command line parameters to a VB6 .exe? How do I do it?
Thanks.
Hi,
I have dll library file, can any one tell me that how can I import that dll in visual basic 6 so that I could use its classes & functions in my projet.
Hi,
I'm trying to load an Excel Worksheet with a bunch of info that resides in an xml file. the xml file is in the same path as the workbook and it's called "sample.xml". I haven't used any x...
Hi,
I'm trying to understand the locking mechanism using adOpenKeyset, adLockOptimistic.
If I've opened an record set using adOpenKeyset, adLockOptimistic, what is the implication to others ...
Hi
If I want to wait 10 seconds in a function without locking the whole program, how to do?? I think there should be a "wait" function...
if I use SleepAPI, it will lock the program.
or how to...
Good afternoon Expert,
I need to display the line numbers in the code window of the Visual Basic 6 IDE. I thought it
was in Tools, Options but I can't find it. Can't find it in MSDN Librar...
if i eter any word , i should get known that which letter is in that word & for how many times.
then i should also get the total of the corresponding numbers to these characters & to display ...
Hi,
I want to know how to use VB6 to get a file's date/timestamp. When an application opens, I want to check to see if I can delete a backup file (should occur 90 days after last use). Prob...
Greetings,
I am having a little trouble working out how to appropriately use these three constants. In the absence of a physical workspace, i.e. a typewriter, what does "Line Feed" actuall...
I need to kill a process of an application whose task id I get with the Shell command in VB. For example:
procID = Shell("C:\myprogam.exe", vbNormalNoFocus)
Appactivate and sendkeys("%(...
I need to capture an image from a webcam when an event takes place in a Visual Basic program. I have students taking tests using computers. The test programs I wrote myself. I need to take a p...