Excel Macro Automatic

  • Thread starter Thread starter graciela
  • Start date Start date
G

graciela

Hello, i want to know how i write an automacro in excel.
The thing is to open a workbook, and automatic execute a
macro, can i help me?
 
try this
Workbooks.Open(workbookname & ".xls").RunAutoMacros xlAutoOpen
 
Try this:

In VBA, click on This Workbook
create a subroutine

sub Workbook_open()
.....command to run macro.
end sub
 

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

Back
Top