macor in excel 2007

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • radom
    New Member
    • Feb 2008
    • 37

    macor in excel 2007

    Hi all what i need is every time i open this file it imports a text file i got it useing a key but i need to know how to do it upon opeing the file .
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    Originally posted by radom
    Hi all what i need is every time i open this file it imports a text file i got it useing a key but i need to know how to do it upon opeing the file .
    inside some sheet's VB code, you can manage the sheet's events. Try with the Calculate one, something like this will do:

    [CODE=vb]private sub worksheet_calcu late()
    'your code
    end sub[/CODE]

    press Alt+F11 to enter the VBA editor, and double click in any worksheet in the project explorer (it should be in the upper left corner)

    Comment

    Working...