try to instance FileSystemObject
hi there, i have encountered an a error while trying to instance the FileSystemObject. When i do: Dim fso As New FileSystemObject it returns me that error: Compile error: User-defined type not defined...
View ArticleMsOf365 Big Help on a Printing Macro
Long story short, I inherited this pallet tag printing excel booklet. One of our new managers brought it from a previous business and I'm the only advanced Excel user in the building, though I have...
View ArticleVS 2013 Clear last Document in Printdocument
Hi, I just cannot find a solution to this. When I print a document, it also prints the last documents, My code is as follows: Private Sub Print() Try PrintDocument2 = New PrintDocument PrintHeader3()...
View ArticleTrying to identify the *.BAS file
I was asked to make a few changes to a VB program. The program resides on an XP machine running VB6 SP5. I searched the machine for *.VBP and *.BAS files. There are over 80 project files and even more...
View ArticleCalculate Age-February issue
Hello everybody. I managed to create a function which calculates the age, based on today's date in form of "X years + Y months+ Z days". For example if someone is born at November 23rd 1978, it returns...
View ArticleVS 2012 What to hijack a SqlDataReader class so it can be sourced from...
Ok - I'm using a simple SqlDataReader like this: Code: Using rsPrint As SqlDataReader = cmd.ExecuteReader ReDim strRS(0 To rsPrint.FieldCount - 1, 0 To 2) If Not rsPrint.HasRows Then . . ....
View ArticleVS 2012 Want to hijack a SqlDataReader class so it can be sourced from...
Ok - I'm using a simple SqlDataReader like this: Code: Using rsPrint As SqlDataReader = cmd.ExecuteReader ReDim strRS(0 To rsPrint.FieldCount - 1, 0 To 2) . . . If rsPrint.HasRows Then...
View ArticleInsert To Excel Starting From Column E
Hi, I'm trying to add info to an excel sheet but rather than add a new line each time I would like it to ignore the first 4 columns as these already contain formulas to generate a barcode. Is this...
View ArticleSQL Query to eliminate duplicates
Ok, newb SQL guy here. I have a vb.net mission and one of my queries has me stumped. It can be done in code, but trying to do as much as possible in SQL The basic concept is a room booking application....
View ArticleCopy Paste (Capture) an action word into empty cell
Working w/ contracting/quotes, etc. "CONTRACTOR SHALL" statements and want to be able locate the word that follows the statement "Contractor Shall" in every line then copy/paste that single word into...
View ArticleGet remote Process Description.
Hi. This is nuts. So Anyhow I'm trying to get the process description as show in task manager. From what I read you might need to do this: Dim info As FileVersionInfo =...
View ArticlePrevent Form_Activate
With form1 active/visible, I show form2. Is there a way to prevent form1_activate from firing after form2 is closed? Form2 is used this way frequently, with various different other forms, so Im trying...
View ArticleHow to view OCX, DLL and DCR files in embedded Documents, using object and...
Dear members of this forum, I am looking to get a HTML Document named for example: MyGame.htm to completely have a OCX or DCR, even a DLL file embedded into the document, that means there will only be...
View Articlereset a temp alarm
hello I'm building a temp monitor application to monitor 16 temperatures. The application is running fine. I want to improve it a little bit by adding blinking colour and maybe an alarm sound if a temp...
View ArticleError -2147418111 after update W10 V20H2 + office to 16.0.13231
One of our customers is used a vb.net exe program to start Word from an application. Working fine for years. After the Windows update to W10 V20H2 they get an error with this program -2147418111 hex...
View ArticleHelp With Error: Subscript out of range
Hi, I'm no expert with VB, I've just done the odd simple program from time to time. I have a program that's been given to me by its author, which he created some time ago, that has developed a problem....
View ArticleDirectly call the classes in the .NET base lib (mscorlib.dll) in VB6
I often need to test some C#/VB.NET code in VB6. I'd like to know whether there is a way to directly call some classes in the .NET basic library (for example: mscorlib.dll or System.Runtime.dll) in...
View Articlevb.net combine multiple text files
Hi All... I am using this code to combine text files. How can I add a carriage return after each file? I need this output: Code: Apple Banana Orange Not like this code is doing: Code: AppleBananaOrange...
View Article[RESOLVED] reset a temp alarm
hello I'm building a temp monitor application to monitor 16 temperatures. The application is running fine. I want to improve it a little bit by adding blinking colour and maybe an alarm sound if a temp...
View Article