Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Databases > Other Databases   »   Auto-Macro in Excel

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old Dec 20, 2007, 08:18 AM
Wonder84lalala
Junior Member
Wonder84lalala is offline
 
Join Date: Aug 2006
Posts: 39
Wonder84lalala See this member's comment history on his/her Profile page.
Auto-Macro in Excel

Hi,

I have a lot of macros built-in Excel, but when I want to update the certain data , I have to run them individually each time. Do you know anyway I can auto-run these macros?

Thanks for any help.

Reply With Quote
 
     

Answers
 
 
Old Jan 7, 2008, 04:23 AM   #2  
Duane in Japan
Full Member
Duane in Japan is offline
 
Join Date: Oct 2007
Posts: 282
Duane in Japan See this member's comment history on his/her Profile page.
I do not have a straight answer for you from within Excel, except to say that I believe you could write a VBA code to do this for you but I do not know VBA well enough to point you in the correct direction.

If you get the pay version (cheap) of Aldos Macro Recorder, there is a section built in that if an entry is made, the macro will run, since it is seperate from Excel, Aldos Macro will run your Excel Macro and there you have it.

I also believe that you could build a Visual Studio 2005 or 2008 beta program to do exactly what you want but there is a learning curve, but there is tons of help available, and I have plenty of info for those sites too.

I am thinking that if a cell is updated on your Excel sheet, then there could be a shortcut created in the cell (hyperlink) or the cell next to the updated info and you could easily access the hyperlink directly from the updated cell or its neighboring cell with ease, this is the easiest fix I think, yes it still manual but you will not have to drill down through the macro listing to find it, the exact macro of choice is right there in a hyperlink or shortcut.
  Reply With Quote
 
     
 
 
Old Mar 8, 2008, 02:17 PM   #3  
tbakry
New Member
tbakry is offline
 
tbakry's Avatar
 
Join Date: Oct 2007
Location: Silver Spring, MD - USA
Posts: 18
tbakry See this member's comment history on his/her Profile page.
You can do an autoexec but there are security implications. I think what you are looking for is Auto_open() It is a VBA module. I believe that it may require you to modify your security settings to work. If you go into the VB editor you can create a module called Auto_open(). Here is an example of one that I did to print off multiplication table worksheets for my kids:
Create a VB module
example:

Sub Auto_Open()
'
' Multiprint Macro
' Print Multiplication Practice Sheets
'

'
Workbooks.Open Filename:= _
"C:\Documents and Settings\Martha\My Documents\xls\Andy Multiplication.xls"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Workbooks.Open Filename:= _
"C:\Documents and Settings\Martha\My Documents\xls\Joe Multiplication.xls"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
ActiveWorkbook.Close
ActiveWorkbook.Close
End Sub

The macro is saved into a specific worksheet and when the worksheet is launched, it automatically executes. The worksheet does prompt me to allow macros.

Cheers,
Tom
  Reply With Quote
 
     


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
excel vlookup and auto start macro PeterAV Spreadsheets 1 Feb 5, 2008 10:45 PM
Recording a macro in Excel CathyDAquarius Spreadsheets 2 Dec 19, 2007 05:45 AM
Excel macro total row ssheldon Visual Basic 0 Jun 28, 2007 05:34 AM
Excel Macro question NeedKarma Spreadsheets 0 Jul 5, 2005 10:12 AM
How to Automate a macro in excel traka Spreadsheets 4 Jul 4, 2005 05:09 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 01:52 AM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.