473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

VB help with Autorun of spreadsheet

4
Ok guys and gals! I have some VB code that I'm about to post, hope I don't get into trouble for posting this by my boss but I need major help! So here goes. I need this To work every time I open the spreadsheet. Here is the code can someone help in finding a way for it to automatically run?

Expand|Select|Wrap|Line Numbers
  1. Private Sub ComboBox1_open()
  2. ComboBox1.Clear
  3. ComboBox1.AddItem ...
  4. ComboBox1.AddItem ...
  5. ...
  6. End Sub
  7.  
  8. Private Sub ComboBox1_Change()
  9. Select Case ComboBox1.Value
  10.  
  11.   Case ...
  12.     Cells(5, 4).Value = "..."
  13.     Cells(5, 5).Value = "..."
  14.     ...
  15. End Select
  16.  
  17. End Sub
Please I need this done by the end of the week. Thank you in advanced!
Aug 8 '07 #1
7 1326
Killer42
8,435 Expert 8TB
You could try putting it (or better, putting a call to it) in the Workbook_Open event.
Aug 9 '07 #2
bg0420
4
You could try putting it (or better, putting a call to it) in the Workbook_Open event.


Just done it and all it did was put a date in with no working combo box.
Aug 9 '07 #3
Killer42
8,435 Expert 8TB
Just done it and all it did was put a date in with no working combo box.
You just asked how to get it ro run automatically. Are you saying there are further problems with the code?
Aug 10 '07 #4
bg0420
4
You just asked how to get it ro run automatically. Are you saying there are further problems with the code?

I'm guessing so. I have posted the code into the VB under Sheet1 and I have to manually go into the VB by pressing F11 then I have to put my cursor next to the end sub and press F5. I'm not understanding of why I have to do that every time I open the spreadsheet up.
Aug 13 '07 #5
Killer42
8,435 Expert 8TB
Well, I don't know, but whatever you put in the Workbook_Open event should run automatically when the workbook is opened.
Aug 13 '07 #6
bg0420
4
Well, I don't know, but whatever you put in the Workbook_Open event should run automatically when the workbook is opened.

I just hit another problem, I added another Combobox and put a bunch of code into it and it said it's to big. I guess I'm screwed.
Aug 17 '07 #7
Killer42
8,435 Expert 8TB
I just hit another problem, I added another Combobox and put a bunch of code into it and it said it's to big. I guess I'm screwed.
What said that what is too big?
Aug 18 '07 #8

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

Similar topics

2
by: Liath Macha | last post by:
How can a distribution CD AUTORUN.INF file be made to open an HTML page using the system browser rather than running an exe on the distribution CD? Thanks Liath
0
by: John Phelan | last post by:
It use to work. I created numerous coppies of my MS Access2003 developed application for distribution using both the new "Startup" and "Package and Deployment" wizards (that incudes "autorun"...
1
by: Ronald S. Cook | last post by:
In my C# Win app, I'm wanting the user to click a button that will prompt to load blank DVD and then burn not only select files, but also an autorun file. Can anyone please get me started in the...
1
by: zacks | last post by:
Is there any way in VB code to tell if an application was invoked from an Autorun.INF file on a CD/DVD or if it was invoked from the Start Menu (or a shortcut)?
2
by: Joe Cool | last post by:
I know this is probably not the proper newsgroup to ask this question, but I do not know which one is. And most of you guys here know a lot about windows programming so I am taking a chance some...
2
by: tmWin | last post by:
Hi all I wanna run my application directly from a Flash Disk. I want it AUTORUN once the device is attached. I have seen some virus script-programs which create their own autoruns on a...
5
by: Orv | last post by:
I have a database set up where I want to export the records to a cd. I want to be able to create an autorun cd and have it based on HTML so when it opens, the user can click on various links and it...
2
MrMancunian
by: MrMancunian | last post by:
Hi Everybody, We've got a virus problem in our department and the thing it does is always the same. It creates an autorun.inf in the root of every partition. When the partition is accessed (or...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Programs dealing with autoruns Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list programs that help me to view/modify the autoruns...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
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,...
0
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...

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.