Compile error with excel 2007
I have written a very basic Macros code to retrieve a photo off my server. I want it to run this macro when a person has selected a certain item off a drop down list. The problem I am having is that when I try and run the macro manually or when the workbook opens I get a an error message that reads "Compile Error: Invalid outside procedure". I click "Okay"
And it show a portion of the code from line
-Range("G48").Select- is highlighted.
The part "G48" is highlighted. Can't figure out why. I recorded the Macro in excel 2003 because excel 200 doesn't let you record macros that insert pictures. It is supposed to work according to Microsoft if you record the code in 2003 and copy it to 2007. I'm looking for a more educated person to answer this please.
Here is the whole macro code:
' Solar_world_175 Macro
'
'
Range("G48").Select
ActiveSheet.Pictures.Insert( _
"\\Pele\work\Pictures\Solar Proposal Pictures\solar world panel
2008.bmp"). _
Select
End Sub
Very basic yet ift won't work.
Thanks in advance.