vba x 200

12,155 Topics

Member Avatar for
Member Avatar for ACE--

Hi, My requirement I need to edit or replace content in the word document every time and save it to another location. What I wanted is I want to simplify this through vb.net but stuck in somewhere I am doing mistake in the code itself (I am completly newbie). I …

Member Avatar for cgeier
0
10K
Member Avatar for JimH13

I'm new to this site so please excuse any errors in etiquette or format. I have Visual Basic 4.0 (Please don't laugh!). It works fine on my desktop but when I installed it onto my new laptop running Windows Vista I get an error message " 'olepro32.dll' could not be …

Member Avatar for arndtwc
0
661
Member Avatar for CorradoC

I installed Windows 7. After installation of Visual Basic 5 I cannot manage to add components like the Microsoft Data Bound Grid Control (DBGRID32.ocx) and all the rest of the .ocx type controls. The error message is either "Permission denied" or "error accessing the register". Has anyone a solution other …

Member Avatar for HDJper999
0
696
Member Avatar for jeffersonalomia

I am recently developing a software(using Visual Basic 2010 Express) that has a feature that would store image on the database(MS Access 2007).. My problem is, how can i store image on msAccess and then retrieve it again on my application

0
125
Member Avatar for dw85745

I've been coding since 1966 and have seen a number of languages come and go and also held up as "THE" language. When Microsoft came out with Visual Basic 3/4/5/6 (Classic NOT Net), and with VBA as part of their office suite, I jumped on it and never looked back …

Member Avatar for Reverend Jim
0
382
Member Avatar for 6435232

I'm making a game for class, and I don't know how to go about it for this part of the game... How do I make the program detect the command buttons around it? The game is a 8x8 board that looks like this: http://s27.postimg.o...shovn/image.png When it is a player's turn …

0
108
Member Avatar for bonzo2008

Hello I have a maskedbox and I will when I press OK button it will generate a new number in the maskedbox.

0
118
Member Avatar for ctrah

hi .. I have done coding for calculation ... but the results obtained (eg.13.9484736273928) .. how can I get the results in 2 decimal point (eg 13.95)? Your help is greatly appreciated Private Sub tx_kh2_Change() Text2.Text = Now() Dim x As Integer x = DateTime.DateDiff("s", Text1.Text, Text2.Text) Text3.Text = x …

Member Avatar for Aslam Mansoor
0
172
Member Avatar for Yorkiebar14

Hello, I am trying to create a simple application for personal use for Twitter marketing. This is my first time trying to interact with REST APIs through VB and I have been going around and round getting various different errors. Here is my current code and I get a '401 …

0
261
Member Avatar for PerplexedB

I have this routine that works in outlook 2010 but not in outlook 2013 (365). ` Public Sub readTextFile(oFolder As eFolder) If oFolder = NotSupported Then Exit Sub If oFolder = Inbox Then ActiveExplorer.CurrentView = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Views("MgInbox") Else ActiveExplorer.CurrentView = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderSentMail).Views("MgSentMail") End If Dim oTV As Outlook.TableView Set oTV = ActiveExplorer.CurrentView …

Member Avatar for PerplexedB
0
441
Member Avatar for Sadaf_1

Salam... I have SQl Database...And i am using visual basic 2010 i have a problem with Null values.When in my database data have some null values then data not showing in my crystal report ...crystal report showing blank..I want '0' when data is null..for example my table name is (meetings …

Member Avatar for Reverend Jim
0
357
Member Avatar for mcdczzz
0
121
Member Avatar for Moiz_1

Hello Anyone could you help i have got a strange problem when i update any record i get an error 2147467259 -(8000405) Insert Field failed. Where as on the same application i can add a new record. Please see below the code i have used dont know where am going …

Member Avatar for Daemon_CC
0
539
Member Avatar for Papa_Don

Hi Group! I'm curious to know, is it is possible to build a custom control in Visual Basic? Specifically, I want to build a control that would be similar that would be similar to a ListView (in the Detail "view"). However the difference would be in how it actually displays. …

Member Avatar for Member #1106560
0
301
Member Avatar for Yogesh_5

vb color commondialog box return color if i am selecting cancel in color dialog box.how we can handle this. commondlg.showcolor lblcolor.forecolor=commondlg.color

Member Avatar for Yogesh_5
0
313
Member Avatar for pebryan

Hello.. i just want to know..how i copy or transfer all data record from datagrid1 to datagrid2 ..Thanks

Member Avatar for Aslam Mansoor
0
107
Member Avatar for Estella
Member Avatar for tekuna1678
0
3K
Member Avatar for Sushma Somesh

HI, my code for search is rec.Open "select * from Body_Markings_new where Part Number like '%" & txtsearch.Text & "%' ", conn, adOpenDynamic, adLockOptimistic after compiling this code getting an error saying syntax error (missing operator) in query expression 'part number like' %1%" please help me I not able to …

Member Avatar for Sushma Somesh
0
220
Member Avatar for Dr.Lipe
Member Avatar for fada397

below is the code which select value from the database and increase it by 2 and update the database with the new value. how do I lock or prevent multiple read and update at the same time? please help Dim query2 As String = "select * from " + usern …

0
194
Member Avatar for ronmark.madrona

Gud day to everyone!!! Hi, I really need your help guyz, i want to connect my system and database to 2 or more computer, just like the server and client. how could it be possible?? and what you shuold i do for this project?? i hope you can help me …

Member Avatar for ronmark.madrona_1
0
157
Member Avatar for ronmark.madrona

hi to all, i am new in vb6 and im trying to make a project. Can you help me guyz, i want to populate the textbox in datagrid. im don't have the idea on how to do it. this is what i want to try , when i am inputing …

Member Avatar for ronmark.madrona_1
0
330
Member Avatar for Gulzar_1

im using access 2007...when i open database in vb6.0 it is throwing an error 3343 unrecognised database format..i m using latest reference. help me out

0
79
Member Avatar for Fadli Muhammad

can anyone how to disable process such as explorer.exe at startup windows7 until i was true entering password? i want make log in display as my style.. thanks before.

0
156
Member Avatar for André_3

I don't know what i doing wrong. I have been on several forums trying to figure out how to sort a table in visual basic. I have treid with and with out a dataview, but noting seams to work. I have a logg that the user can do new inserts …

Member Avatar for cgeier
0
246
Member Avatar for annain

hi, I need a help.how can i SEARCH a record in a database using listbox and display the results?? For an example: if i select a destination on the listbox and it will look for the records on database and display it. im using ms access and adodb connection.Below is …

Member Avatar for annain
0
563
Member Avatar for annain
Member Avatar for annain
0
185
Member Avatar for mavtcr

Friends , Is there any way for data alignment in the list box. My code is given below Private Sub TxtFdt_KeyPress(KeyAscii As Integer) Dim L, L1, L2, L3, L4, L5 As Integer Select Case KeyAscii Case vbKeyReturn If TRS.State = adStateOpen Then TRS.Close TRS.Open "SELECT * FROM Tran WHERE Ac …

Member Avatar for Aslam Mansoor
0
1K
Member Avatar for Yogesh_5

i want to create a table and fill the data inside. i have crated table manully using loop now i want to fill data inside it... how we can fill plz help Dim tmpcounter As Integer tmpcounter = pageLeft + Printer.CurrentY For x1 = pageLeft To 2036 Step 200 Printer.Line …

Member Avatar for Aslam Mansoor
0
277
Member Avatar for krunal1986

Hello, I have my own mail template in vb6.0. when i click on send button it creates a new outlook 2007 window. all information passes to it except subject message. on my local machine it is working but on client side not. Tanks, krunal

0
198
Member Avatar for jeffersonalomia

i have problems with the application that i currently develop. I use tab control, and to access tab pages(page 1 , page 2, etc) i use link label. Now my question is, how can i remove the WHITE BORDER of my tab control?? I tried using panel to hide the …

Member Avatar for jeffersonalomia
0
267
Member Avatar for noor_3

Hey, I never use any CSS file in VB...just wanna ask is that posibble? And for what i've found, in order to implement the css call we need to declare it in the master or content page rite?? well my badluck i dont have any of it..the project that with …

0
116
Member Avatar for junglefury

Hello daniweb, I would like to us if it possible to search using two boxes from listview in vb6… First text box is for company name then the second box is for Number…the idea is that search first in the first textbox(companyname) then the second textbox (number)will search based on …

0
127
Member Avatar for ctrah

hi... how to calculate the difference between time 1 and time 2 ... and how to get the current time without moving "second" coding that I do now makes a ticking time and can not do subtraction between the time ... I really appreciate your help Private Sub Command1_Click() Timer1.Enabled …

Member Avatar for ctrah
0
163
Member Avatar for riahc3

Im thinking of proper ways to validate dates. Which months have 30 or 31, feb when it has 28, etc. Since Im doing this in VBScript and there is no forum for that here, I thought of making this thread for a pseudocode method of doing it correctly universally. No …

0
103
Member Avatar for tbuchli

I'm trying to make a hit counter. I have it working but when I add it to my website, I get a web config. error... <%@ Page Title="Home Page" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <%@ Import Namespace="System.IO" %> <script language="VB" runat="server"> Private Sub Page_Load(ByVal sender As System.Object, ByVal e …

Member Avatar for tbuchli
0
590
Member Avatar for <\Jericho>

I'm trying to open a text file in a rich text box, but when I use the OpenFileDialog.ShowDialog() function it says: "refrance to a non shared member requires a object refrance" even though I've uesd imports system.IO if I sound like an idiot, Its because I'm learning. My code so …

0
110
Member Avatar for super-duper

Hey, everyone. I am writing a batch script (.bat program) to automate some tasks. And when that certain task is complete, I would like it to send an email to the admin saying if the task was completed successfully or it failed. It will figure out if the task was …

Member Avatar for r4ravi
0
1K
Member Avatar for alina.nazchowdhury

I've already succedd to dial a number via modem using mscomm control, but i want to actually be able to speack with that person i'm calling, how can i do it, or if you have some modem dialer examples in zip files, please let me know, i'll apriciate it.

Member Avatar for Ancient Dragon
0
105
Member Avatar for SaRa Ahmad

'======================================================================================================= If rs.State = adStateOpen Then rs.Close rs.Open "select ActvID from activity_id where ProjectNo = '" & ProjectNo1 & " ' ", db, adOpenDynamic, adLockReadOnly If Not rs.EOF Then rs.MoveLast While Not rs.BOF ActvID.AddItem rs(0) rs.MovePrevious Wend Set rs = Nothing i need to add items without using While plz

0
77
Member Avatar for sourjya
Member Avatar for Sulaiman_1
0
121
Member Avatar for Coudren

I had created a window application, finish debug and it work perfectly in my computer. I then copy a whole folder includes the .exe file to another computer which doesn't installed vb. When i run the .exe files, it doesn't work and pop out the statement below: *********************************************************************************** See the …

Member Avatar for oussama_1
0
468
Member Avatar for rstringer

Hello All, I am working on an Access 2010 application. I would like to click on a command button and open a Adobe PDF document. The code for the On-Click event is: Set shell = CreateObject("WScript.Shell") shell.Run """C:\Program Files (x86)\Adobe\Reader 11.0\Reader\acrord32.exe"" SourceFile" When the Shell.Run line executes, Acrobat returns an …

Member Avatar for Ancient Dragon
0
385
Member Avatar for krunal1986
Member Avatar for raheel88

All, What is the most efficient way of writing several lines of data to a *.txt file? Currently, I store the required text in memory then write it all to a user-specified text file at the end, similar to the following; Dim text As String = "" text = text …

Member Avatar for dionterry
0
4K
Member Avatar for themathprof

` How can I print a watermark in the middle of a word document then return to the top of the doc and start to print whatever text I want to? Here's my code: Set oWord = CreateObject("Word.Application") oWord.Visible = True 'Add a new, blank document Set oDoc = oWord.Documents.Add …

0
208
Member Avatar for cambalinho

i'm using the data control with mask edit box control. when i click on next button, the mask edit box isn't updated. but why show us the 1st element from data?

0
92
Member Avatar for vampshay
Member Avatar for Alireza_5
0
5K
Member Avatar for GregDen

I am writing an application in Visual Basic 5.0 that calls Crystal Reports 4.6. I used to be able to do this on my old PC which ran Windows XP, but now when I try to do it on my new PC which is running Windows 7 (64-bit), I can't …

Member Avatar for miquel.matas
0
581
Member Avatar for FutureDev86

For the life of me, I can't get this to work.... What am I doing wrong? Any help is greatly appreciated!! [CODE] Private Sub webBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long) On Error Resume Next If Progress = -1 Then ProgressBar1.Value = 100 lbl1.Text = "Done" ProgressBar1.Visible = False …

Member Avatar for Richard_16
0
620

The End.