Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is it possible that 2 macros can be executed simultaneously in VBA.
So there will be one macro which will take inputs from a database in access and will continue to show the data like a news strip. That code I have made.
Now there are other data and charts also on the same sheet. The problem is can the user execute the other macros for changing the data/Charts on the same worksheet by pressing command buttons or selecting radio buttons while side by side the film strip like data continues to flow on the screen.
Thanks.
No. VBA is single-threaded. Thus, one task must complete before another can run.
You can fool it by using Shell to launch an external process, but that's another story.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
My manager has asked me to write a program that pulls data from a database that I have access to (it's an Oracle database and I'm using SQL developer). The idea is to get the data they want and put into an excel sheet in a way they would like. I haven't really wrote scripts before nor have I ever wrote a scraper, I was wondering what the first step is here and what resources I should use to get started? I have a couple of weeks to do this but I don't really know where to start.
I would start with an SQL query to find the data your manager wants. If you got the right result on screen, just right-click into the query result, select 'Export', and format= Excel...
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a bunch of excel files that need to imported into MS access tables everyday. I was looking for a way to automate this using Batch or VB. Is this possible using batch only? If not, how do i come about doing this with vb, i have no experience with vb and have no clue where to start. Can vb scripts be written on access only or requires any other programs?
Regards,
VBA will best suited for this task. Every MS Offfice program have developer section on the ribbon (but you have to enable it), where you can enter VBA editor and wirte scripts there.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to make my Atmega robot to operate multiple modes (line following, obstacle avoidance, direct guidance from PC ) How can I load these separated programs on flash and how to select one of them when restarting the robot?
The easiest way is to make one big program with all the functionality of all the modes. On startup, in main() check if certain buttons are pressed, then choose which mode you are going to operate in. Then only use the functions and control mechanisms for that mode from then on. The rest of the code just sits there unused, but it would anyway in any other scheme.
There isn't an easy way to break the code into several different complete programs. For example, the vector table is fixed to be where it is. You would have to have the interrupt handlers check to see which mode is active then call the appropriate function for that mode.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I know this is probably a little backwards but in this case I want the errors. I am working on a project and I am no longer getting pop up run time errors in VBA. The code just stops and I have to go step by step to find it. I must have done something to make it stop doing this but I have no idea what it was.
Any suggestions?
Best regards, CK
I can think of Three reasons
Close and reopen the excel file. Ensure that before you re-open there is no left over instance of Excel in task manager.
You are using On Error Resume Next
Incorrect Error Handling
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I wrote a macro in VBA that does an action on some of the files that arrive to my inbox in Outlook. However, I will have to click a button or a shortkey to run this macro. Is there a way that this macro runs automatically whenever an email arrives to my inbox?
Please help,
You should be able use an Outlook rule to run a script. Have a look at "Rules and Alerts" and creating custom rules.
Maybe this contains an answer to your question:
http://www.ureader.com/msg/1081942.aspx