473,467 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

convert _VBA_ to VB.net?

does anyone know any helpful ways to import VBA from Excel into VB
2005?

I just swear; 2/3rds of the Vb6 code in the world never touched Visual
Basic 6.0; and I want to re-use some of my existing code without a
bunch of effort.

I was thinking that the convertor could help me to do this; but It
won't import the VBA from a spreadsheet

thanks

Susie

Feb 10 '07 #1
16 1195
yeah.. I've sure got a _LOT_ of VB6 code living in spreadsheets and
VBS files; it sure would be nice if the VB convertor would work with
those files.

Of course, it's impossible to jump on a full speed train

I think that we should all vote for Ralph Nader for president of
Microsoft; I think that he is the only person that can save this
company

-Aaron

Feb 10 '07 #2
On Feb 9, 7:14 pm, "susie...@hotmail.com" <susie...@hotmail.com>
wrote:
does anyone know any helpful ways to import VBA from Excel into VB
2005?
Well... To be honest I've never been much a vba person, but since no
one has given you any helpful answers yet - I'll take a stab....

In 2005 you have the ability to convert code snipits at a time... If
you look in the menu, you should see an options that says Upgrade
Visual Basic 6 Code. You can then copy and paste or type code into it
to see what the translation would be. I suppose, you could copy your
vba functions into that box and see what happens :) I suspect you
will have some issues due to differences between VBA and VB6, but it
might get you partway there anyway.

--
Tom Shelton

Feb 10 '07 #3
Tom,

The OP is Aaron Kempf in drag. Look for other posts today by
su******@hotmail.com

Bruce

"Tom Shelton" <to*********@comcast.netwrote in message
news:11**********************@m58g2000cwm.googlegr oups.com...
On Feb 9, 7:14 pm, "susie...@hotmail.com" <susie...@hotmail.com>
wrote:
>does anyone know any helpful ways to import VBA from Excel into VB
2005?

Well... To be honest I've never been much a vba person, but since no
one has given you any helpful answers yet - I'll take a stab....

In 2005 you have the ability to convert code snipits at a time... If
you look in the menu, you should see an options that says Upgrade
Visual Basic 6 Code. You can then copy and paste or type code into it
to see what the translation would be. I suppose, you could copy your
vba functions into that box and see what happens :) I suspect you
will have some issues due to differences between VBA and VB6, but it
might get you partway there anyway.

--
Tom Shelton

Feb 10 '07 #4
On 2007-02-10, Bruce W. Darby <kr******@atcomcast.netwrote:
Tom,

The OP is Aaron Kempf in drag. Look for other posts today by
su******@hotmail.com

Bruce
I know. I realized shortly after I posted. He is a real live troll.

--
Tom Shelton
Feb 10 '07 #5
"Tom Shelton" <to*********@comcast.netwrote in message
news:11**********************@m58g2000cwm.googlegr oups.com...
On Feb 9, 7:14 pm, "susie...@hotmail.com" <susie...@hotmail.com>
wrote:
>does anyone know any helpful ways to import VBA from Excel into VB
2005?

Well... To be honest I've never been much a vba person, but since no
one has given you any helpful answers yet - I'll take a stab....

In 2005 you have the ability to convert code snipits at a time... If
you look in the menu, you should see an options that says Upgrade
Visual Basic 6 Code. You can then copy and paste or type code into it
to see what the translation would be. I suppose, you could copy your
vba functions into that box and see what happens :) I suspect you
will have some issues due to differences between VBA and VB6, but it
might get you partway there anyway.

--
Tom Shelton
Tom,

You're being a really nice guy here, so I feel I have to tell you that this
is one of Aaron's aliases. So is dbahooker. He's having a conversation with
himself in this thread.

Robin S.
Feb 10 '07 #6
yeah I don't want to copy and paste

i've got hundreds of spreadsheets; hundreds of Access applications

I just want to know why VB 2005, 2002 or 2003 doesn't have some
functionality to import VBA code

-Aaron

Feb 12 '07 #7
I'm not a troll

I've got legitimate grievences about VB and you kids claim that
everything is peachy

VB 2005 doesn't do full 3/4 of the activities I need to do with VB; so
please tell me how to proceed-- continue using VB6 and vb 2005?

do I really need to go from one langauge to FOUR?

OLD DAYS:
VB6 / VBA / VBS

NEW PARADIGM
C# - a _LOT_ of samples are showing up only in this newly invented
langauge and that just flat out pisses me off
VB6 - because 2002,2003,2005 don't have 3/4 of the functionality of
VBA / VB6 / VBS
VB 2005 - because i'm a vb guy, duh
Javascript - clientside DHTML, because Microsoft killed off clientside
vbScript in ASP.net - I read this in MS press book, VBS clientside is
not supported any longer

now do you get some clue why I'm pissed off?

Feb 12 '07 #8
the answer is _NOT_ 'just learn 4 languages' in addtion to the half
dozen db langauges I need

the answer is 'find a new language'

Feb 12 '07 #9
and please stay on-topic, thanks

Feb 12 '07 #10
and tom, btw why are you scared of VBA? i mean; it's just like VB6;
but it has a 90% market share; I mean.. Excel and Word and Outlook is
on -everyones- machines.. the framework isn't on 10% of desktops

-Aaron
Feb 12 '07 #11
I'd like to recommend to the readers of this list to completely
disregard posts from the following sources:

susie dba
dba hooker
punjab tom
aaron kempf
larry linson, jr
master programmer

They're all manifestations of the same entity that haunts this
discussion list, a nameless, low life form between a troll and a bot,
and, still, less than a ghost. A postergeist, if you forgive the bad
pun.

For the matter of comparison, think Peeves, of Hogwarts infamy, or, to
the elders among you, Slimer, that green, transparent and farting
thing from GhostBusters. As with its ectoplasmic peers, the more you
listen to its moans, the more filth it will regurgitate in the room.

Be warned.

Branco.

Feb 12 '07 #12
db*******@hotmail.com schreef:
and tom, btw why are you scared of VBA? i mean; it's just like VB6;
but it has a 90% market share; I mean.. Excel and Word and Outlook is
on -everyones- machines.. the framework isn't on 10% of desktops

-Aaron

No, Word, Excel and Outlook are not on our PC's here, we use
alternatives. VBA has similarities with VB6. Alot of it is
interchangeable, but not everything. So what if the framework is not on
every desktop yet. Just put on on the CD with your program, I mean
really. We have an old VB program which doesn't run on any windows
incarnation... until we install the right dll's. Just like a .NET
program needs the framework, oh boohoo.
--
Rinze van Huizen
C-Services Holland b.v
Feb 13 '07 #13
I'd like to reccomend that everyone turn off the sopranos and
disregard this WOP

I am _NOT_ mp
I wish I was

he is very well spoken; thanks kid


On Feb 12, 9:38 am, "Branco Medeiros" <branco.medei...@gmail.com>
wrote:
I'd like to recommend to the readers of this list to completely
disregard posts from the following sources:

susie dba
dba hooker
punjab tom
aaron kempf
larry linson, jr
master programmer

They're all manifestations of the same entity that haunts this
discussion list, a nameless, low life form between a troll and a bot,
and, still, less than a ghost. A postergeist, if you forgive the bad
pun.

For the matter of comparison, think Peeves, of Hogwarts infamy, or, to
the elders among you, Slimer, that green, transparent and farting
thing from GhostBusters. As with its ectoplasmic peers, the more you
listen to its moans, the more filth it will regurgitate in the room.

Be warned.

Branco.

Feb 13 '07 #14
vb6 apps work on these operating systems out of the box

windows 2000
windows 98
windows me
windows xp
windows vista
windows server 2003

does not the runtime _SHIP_ with windows for vb6?

ROFL

cuz the 100mb framework sure doesn't download on dialup very well.. no
wonder nobody uses it for commercial apps

its' not a question of a CD
it's a question of 1mb or 100mb

On Feb 13, 4:31 am, "C-Services Holland b.v."
<cshNOSPAMPLE...@csh4u.nlwrote:
dbahoo...@hotmail.com schreef:
and tom, btw why are you scared of VBA? i mean; it's just like VB6;
but it has a 90% market share; I mean.. Excel and Word and Outlook is
on -everyones- machines.. the framework isn't on 10% of desktops
-Aaron

No, Word, Excel and Outlook are not on our PC's here, we use
alternatives. VBA has similarities with VB6. Alot of it is
interchangeable, but not everything. So what if the framework is not on
every desktop yet. Just put on on the CD with your program, I mean
really. We have an old VB program which doesn't run on any windows
incarnation... until we install the right dll's. Just like a .NET
program needs the framework, oh boohoo.

--
Rinze van Huizen
C-Services Holland b.v

Feb 13 '07 #15
su******@hotmail.com schreef:
vb6 apps work on these operating systems out of the box

windows 2000
windows 98
windows me
windows xp
windows vista
windows server 2003

does not the runtime _SHIP_ with windows for vb6?

ROFL

cuz the 100mb framework sure doesn't download on dialup very well.. no
wonder nobody uses it for commercial apps

its' not a question of a CD
it's a question of 1mb or 100mb

A hello world app maybe, but other than that you need to install some
extra stuff.

The .NET framework is not a 100MB download. It's around 23MB. And we do
use it for commercial apps. And we're not the only ones.

Look, you don't want to use VB200x, that's just fine. Use VB6. As you
said it works great on Vista. You can go on for years on that path.
What's stopping you? Just because MS stopped actively updating VB6?
Please. They also EOL'd Win9x/2000. That doesn't mean they don't work
anymore, No. You said it yourself with your 8 input Win98 box.

I don't like to use Outlook. Does that mean I have to goto the Outlook
newsgroup and bitch about it?

You just have a gripe with your old employer and want to discredit them
here. You've made your point, now please leave it alone.

--
Rinze van Huizen
C-Services Holland b.v
Feb 14 '07 #16
now why in the hell would I ever install any other crap?

the standard controls, ADO and a database is all I ever need.
Maybe if you kids stopped reinventing the wheel you might now have
such complexities
but I choose VB6 over VFRED any day of the week

and I DO NOT Have a gripe with an old employer

MICRO FUCKING SOFT KILLED MY MOTHER FUCKING LANGUAGE EAT A FUCKING
NAZI JACKBOOT YOU DUTCH PUSSY


On Feb 14, 4:49 am, "C-Services Holland b.v."
<cshNOSPAMPLE...@csh4u.nlwrote:
susie...@hotmail.com schreef:


vb6 apps work on these operating systems out of the box
windows 2000
windows 98
windows me
windows xp
windows vista
windows server 2003
does not the runtime _SHIP_ with windows for vb6?
ROFL
cuz the 100mb framework sure doesn't download on dialup very well.. no
wonder nobody uses it for commercial apps
its' not a question of a CD
it's a question of 1mb or 100mb

A hello world app maybe, but other than that you need to install some
extra stuff.

The .NET framework is not a 100MB download. It's around 23MB. And we do
use it for commercial apps. And we're not the only ones.

Look, you don't want to use VB200x, that's just fine. Use VB6. As you
said it works great on Vista. You can go on for years on that path.
What's stopping you? Just because MS stopped actively updating VB6?
Please. They also EOL'd Win9x/2000. That doesn't mean they don't work
anymore, No. You said it yourself with your 8 input Win98 box.

I don't like to use Outlook. Does that mean I have to goto the Outlook
newsgroup and bitch about it?

You just have a gripe with your old employer and want to discredit them
here. You've made your point, now please leave it alone.

--
Rinze van Huizen
C-Services Holland b.v- Hide quoted text -

- Show quoted text -

Feb 15 '07 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Lauren Quantrell | last post by:
I have a stored procedure using Convert where the exact same Convert string works in the SELECT portion of the procedure but fails in the WHERE portion. The entire SP is listed below....
1
by: Logan X via .NET 247 | last post by:
It's official....Convert blows. I ran a number of tests converting a double to an integer usingboth Convert & CType. I *ASSUMED* that CType would piggy-back ontop of Convert, and that performance...
4
by: Eric Lilja | last post by:
Hello, I've made a templated class Option (a child of the abstract base class OptionBase) that stores an option name (in the form someoption=) and the value belonging to that option. The value is...
7
by: whatluo | last post by:
Hi, all I'm now working on a program which will convert dec number to hex and oct and bin respectively, I've checked the clc but with no luck, so can anybody give me a hit how to make this done...
3
by: Convert TextBox.Text to Int32 Problem | last post by:
Need a little help here. I saw some related posts, so here goes... I have some textboxes which are designed for the user to enter a integer value. In "old school C" we just used the atoi function...
7
by: patang | last post by:
I want to convert amount to words. Is there any funciton available? Example: $230.30 Two Hundred Thirty Dollars and 30/100
6
by: patang | last post by:
Could someone please tell me where am I supposed to put this code. Actually my project has two forms. I created a new module and have put the following code sent by someone. All the function...
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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
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
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.