Loughsie
Board Regular
- Joined
- Dec 18, 2006
- Messages
- 152
I need to edit a macro that opens a file that is as .csv
what i want is if the user incorrectly places a file in folder F:\report as .rep
then i want the user to see a message that advises them of the correct format and re run
file name is opened
start of macro is Workbooks.OpenText Filename:= _
"F:\Opened.csv",
if the user put a file name opened.rep i want them to see a message
ive been messing around with a few IF statement but can seem to get it right
anyone any ideas please
what i want is if the user incorrectly places a file in folder F:\report as .rep
then i want the user to see a message that advises them of the correct format and re run
file name is opened
start of macro is Workbooks.OpenText Filename:= _
"F:\Opened.csv",
if the user put a file name opened.rep i want them to see a message
ive been messing around with a few IF statement but can seem to get it right
anyone any ideas please