473,513 Members | 2,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS Excel ---> <----Visual BAsic Pl Help!!!!!

3 New Member
I want to make a program in visual basic. When i put my salary data in VB (like: Time In , Time Out, DAte, DAy) VB automatically (in the back ground) input this data in the Excel and Show out puts of excel back in Visual Basic (Hours left , Total Hours and Total sALARY). How to do it. My project summary is I want VB to work like a dummy that saves and puts my inputs in Excel and then shows me back the result calculations in excel and finally save that excel file. Please help me and guide. Tell me how to do this. If there are any tutorial that i can modify . Please help. I have no experience in VB. But if u can help me and guide me in right direction.
Jan 15 '07 #1
4 1960
Killer42
8,435 Recognized Expert Expert
I want to make a program in visual basic. When i put my salary data in VB (like: Time In , Time Out, DAte, DAy) VB automatically (in the back ground) input this data in the Excel and Show out puts of excel back in Visual Basic (Hours left , Total Hours and Total sALARY). How to do it. My project summary is I want VB to work like a dummy that saves and puts my inputs in Excel and then shows me back the result calculations in excel and finally save that excel file. Please help me and guide. Tell me how to do this. If there are any tutorial that i can modify . Please help. I have no experience in VB. But if u can help me and guide me in right direction.
Wouldn't it be better to keep it simple and just use Excel?
Jan 16 '07 #2
bilalbajwa2336
3 New Member
The thing is when you are working on smart devices. Their small lcd put alot of difficulty for you to put the data in it.
But the purpose of asking for help for this project is alot greater than this. That would a good reference project for me in future. If you wana help then most welcome.
Jan 16 '07 #3
senthilk111
9 New Member
hai,
you can do this by using ado connection which establish aconnection between vb and excel. below i have given excel connection string . so using you insert and reterive data as like you access database.

code

Public Function pblfnOpenExcelRecordset(ByVal sFile As String, ByVal strQuery As String) As ADODB.Recordset

On Error GoTo ErrorHandler

Dim rsExcel As ADODB.Recordset
Dim sconn As String
Set rsExcel = New ADODB.Recordset

With rsExcel
.CursorLocation = adUseClient
.CursorType = adOpenKeyset
.LockType = adLockBatchOptimistic
End With

sconn = "DRIVER=Microsoft Excel Driver (*.xls);" & "DBQ=" & sFile & "; ReadOnly=False;"
rsExcel.Open strQuery, sconn

Set rsExcel.ActiveConnection = Nothing
Set pblfnOpenExcelRecordset = rsExcel

Exit Function
ErrorHandler:
Debug.Print Err.Description + " " + _
Err.Source, vbCritical, "Import"
Err.Clear
End Function

code
Jan 16 '07 #4
bilalbajwa2336
3 New Member
http://docs.google.com/View?docid=dctgg53g_22hpd27q

I basically want this thing to pop up as visual basic program which may connect with Excel.
Jan 18 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
7156
by: Marc | last post by:
Hi all, I am trying to write an application where I need the ability to open an Excel spreadsheet and do basic read/write, insert rows, and hide/unhide rows. Using win32com I have been able to...
1
1722
by: Jano | last post by:
Hi all, I support a number of applications that store info in backend SQL databases. A project has come up where I need to get data out of Excel into one of these databases, using XML/XSLT. I am...
4
3823
by: Corepaul | last post by:
I am a beginner, using Access 2000. I am having difficulty with the Visual Basic Help. Specifically, using the Index tab, when I enter "OpenRecordset" in the keyword field and click the Search...
0
1269
by: planetthoughtful | last post by:
Hi All, It seems my installation of Visual Basic Help for Access 2003 is missing pages / entries. eg, when I do a search on 'subform' and then click on 'Me Property' in the search results, I...
3
3032
by: Niklas | last post by:
Hi We have a lot of applications created in Excel, but now we want to move from Excel to the .NET platform. The application will use grids and charts. What I know the .NET controls are good...
2
4935
by: John | last post by:
I have an Access 2000 form that has a Hyperlink that opens an Excel 2000 worksheet located in the same network folder as the Access MDB. The Hyperlink works great. When users close the Excel...
0
1143
by: giladbarner | last post by:
Hello everyone, I have office 2003 Professional, and I work in Access's Visual Basic Editor. Sometimes after opening the "Microsoft Visual Basic Help" window by standing on a function in the...
4
5332
by: bonkbc | last post by:
hi! how can we take textbox data from a visual basic 6.0 form and write it to an excel worksheet once a command button is clicked? I've gotten very close to completing this on my own, here is...
0
1550
by: =?Utf-8?B?c3Bhcmtlcg==?= | last post by:
Has anybody had the occasion to to build a VB.NET 2008 application that will manipulate an Excel workbook including the Hyperion Essbase Plugin? I was not sure which forum to post this question in...
0
7257
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7379
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7521
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5084
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.