View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
James[_9_] James[_9_] is offline
external usenet poster
 
Posts: 5
Default Two really easy questions

I have this code in excel (written in excel 97)

MyFile = Application.GetOpenFilename
Myfile2 = Left(MyFile, Len(MyFile) - 2) & "rat"
ActiveWorkbook.SaveAs filename:=Myfile2,
FileFormat:=xlText

There's a bit more in the middle but that is irrelevant,

the two questions I have a

1) now I have upgraded to XP the left function doesn't
work, what can I use instead? (or what reference do I
need to tick)

2) Not really excel, but how do I do the equivalent in
word? (the getopenfilename doesn't work in word).