Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default How can I update VBA code in a module that is running my VBA code?

Hello,

I have VBA code that checks against a SQL Server database on an intranet
that returns the most current version number of the code I've written
(whatever number and date I put into the table).

What I want to do is if the version on the SQL Server database is newer then
the version that the user has, I want it to automatically download a newer
version of the VBA code I've written. Is there a way to do that?
Specifically, how can I update VBA code in a module that is running my VBA
code? I think I am OK with all the connection strings and database stuff.

I am dealing with users who want just to see a screen that says, "Updating
your workbook..." and not have to do anything at all. I would have been
easier just to point them to a intranet-website and say, "go download this
file."

Thank you for the help.

-Gumbatman


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default How can I update VBA code in a module that is running my VBA code?

Start here for working with the VBE:
http://www.cpearson.com/excel/vbe.htm

Put the update code in a separate module, or add-in, so you are not trying
to edit the module that is currently running the update code.
Presumably the Update code does not itself need to be updated.....

NickHK

"Gummy" wrote in message
...
Hello,

I have VBA code that checks against a SQL Server database on an intranet
that returns the most current version number of the code I've written
(whatever number and date I put into the table).

What I want to do is if the version on the SQL Server database is newer

then
the version that the user has, I want it to automatically download a newer
version of the VBA code I've written. Is there a way to do that?
Specifically, how can I update VBA code in a module that is running my VBA
code? I think I am OK with all the connection strings and database stuff.

I am dealing with users who want just to see a screen that says, "Updating
your workbook..." and not have to do anything at all. I would have been
easier just to point them to a intranet-website and say, "go download this
file."

Thank you for the help.

-Gumbatman




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default How can I update VBA code in a module that is running my VBA code?

Great! Thank you for the link.

"NickHK" wrote in message
...
Start here for working with the VBE:
http://www.cpearson.com/excel/vbe.htm

Put the update code in a separate module, or add-in, so you are not trying
to edit the module that is currently running the update code.
Presumably the Update code does not itself need to be updated.....

NickHK

"Gummy" wrote in message
...
Hello,

I have VBA code that checks against a SQL Server database on an intranet
that returns the most current version number of the code I've written
(whatever number and date I put into the table).

What I want to do is if the version on the SQL Server database is newer

then
the version that the user has, I want it to automatically download a
newer
version of the VBA code I've written. Is there a way to do that?
Specifically, how can I update VBA code in a module that is running my
VBA
code? I think I am OK with all the connection strings and database stuff.

I am dealing with users who want just to see a screen that says,
"Updating
your workbook..." and not have to do anything at all. I would have been
easier just to point them to a intranet-website and say, "go download
this
file."

Thank you for the help.

-Gumbatman






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default How can I update VBA code in a module that is running my VBA code?

You may find this article interesting:

http://www.jkp-ads.com/articles/updateanaddin.asp

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Gummy" wrote in message
...
Great! Thank you for the link.

"NickHK" wrote in message
...
Start here for working with the VBE:
http://www.cpearson.com/excel/vbe.htm

Put the update code in a separate module, or add-in, so you are not
trying
to edit the module that is currently running the update code.
Presumably the Update code does not itself need to be updated.....

NickHK

"Gummy" wrote in message
...
Hello,

I have VBA code that checks against a SQL Server database on an intranet
that returns the most current version number of the code I've written
(whatever number and date I put into the table).

What I want to do is if the version on the SQL Server database is newer

then
the version that the user has, I want it to automatically download a
newer
version of the VBA code I've written. Is there a way to do that?
Specifically, how can I update VBA code in a module that is running my
VBA
code? I think I am OK with all the connection strings and database
stuff.

I am dealing with users who want just to see a screen that says,
"Updating
your workbook..." and not have to do anything at all. I would have been
easier just to point them to a intranet-website and say, "go download
this
file."

Thank you for the help.

-Gumbatman








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I update User Form CheckMark without running _Click code...? MikeZz Excel Programming 2 June 6th 07 05:41 AM
inserting code into code module crashes Kris Excel Programming 8 January 25th 06 05:28 PM
Running Standard Module Code from Dataform Jim May Excel Programming 1 September 29th 05 04:08 PM
Create a newworksheet with VBA code and put VBA code in the new worksheet module ceshelman Excel Programming 4 June 15th 05 04:37 PM
Update VBA Module Code Todd Huttenstine[_2_] Excel Programming 1 December 27th 03 10:15 AM


All times are GMT +1. The time now is 01:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"