macros start automatic on file open?

F

Ftca

Hi all
is there any way to start a few lines of code
whether in a macro or ????

I need this to run automatically when the file is opened

trying for little user interaction as possible
as in this case no hands - for handicapped person

most cells input will be voice activated
but I cant quite get the 2 macros to start re voice

TIA
 
P

Paul B

use something like this

Private Sub Workbook_Open()
'Your code here
End Sub

To put in this macro, from your workbook right-click the workbook's icon and
pick View Code. This icon is to the left of the "File" menu this will open
the VBA editor, in the left hand window double click on thisworkbook, under
your workbook name, and paste the code in the window that opens on the right
hand side, press Alt and Q to close this window and go back to your
workbook, now this will run every time you open the workbook. If you are
using excel 2000 or newer you may have to change the macro security
settings to get the macro to run.
--
Paul B
Always backup your data before trying something new
Using Excel 97 & 2000
Please post any response to the newsgroups so others can benefit from it
** remove news from my email address to reply by email **
 
V

Vic

-----Original Message-----
Hi all
is there any way to start a few lines of code
whether in a macro or ????
Create a macro called Auto_Open and put your lines of
code in it. This macro will run each time the file is
opened. In case you're interested, a similar macro called
Auto_Close will run each time the file is closed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top