Does anyone have any good sources for information on how to
transistsion from using Excel as a database into using VB? I know SQL
and databases -- just don't understand how to build internal databases
with VB and have it refrence that data -- like say I could inside of
Excel...
UserForm1.TextBox1.Value = Sheets("Sheet1").Range("A2").Value
Range A2 Value =Vlookup(A1, Sheet1!A:IV, 2, False)
If I can learn how to basically VBA Vlookup "formula" inside of VB I'd
be in good shape to learn other things -- as this was the foundation I
started with Excel.
Any help is going to be tremendous!! Thanks!
There is a group about visual basic at comp.lang.basic.visual
which could probably be more helpful.
Greetings Thomas Mertes
Seed7 Homepage: http://seed7.sourceforge.net
Seed7 - The extensible programming language: User defined statements
and operators, abstract data types, templates without special
syntax, OO with interfaces and multiple dispatch, statically typed,
interpreted or compiled, portable, runs under linux/unix/windows.
The short answer is that you can not really do the same things in VB
as you can in VBA. In VB you don't have an Excel application or a
workbook or a worksheet to work with. [ignoring office automation].
The object model is different. In ordinary VB, VB is the host
application. So you use ordinary variables and arrays to hold values.
Also naming convetions are different for controls.
for example:
dim x, y as single
x = Value(Text1.text)
y = Value(Text2.text)
Text3.text = Str(x + y)
etc.
HTH
In this respect, VB is more like the older, traditional forms of Basic
customarily discussed in this newsgroup.
- e