Question Locked

Excel file opening macro

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I use to open a paricular Excel file by clicking a smiley on excel. Now I wish to change the location and name of the file to open from the smiley. Please guide me.

2 replies

by triathlete1981

open excel, on the Tools menu, click Macro, then Macros. a list of all macros embedded within that particular worksheet will appear. highlight the macro you want to change and click the edit button.

the visual basic editor pops up with whatever codes in there for the macro. somewhere in the code will be the path of the file you open everytime you hit the macro button (smile). change the path to the new location.

first, copy whatever code you see when you opened visual basic and copy/save it as a word doc in case you change something that needs to be changed back.

This discussion is closed to new replies.