Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
File Location code
Hello All,
I'm using the following modified code that was posted by "Dan E." several weeks ago to write the path of a file out to a cell. Below is the code: FileName = Application.GetOpenFilename("Text Files _ (*.txt), *.txt") CellLocation = Len(FileName) + 1 - InStr(1, StrReverse _ (FileName), "\") FilePath = Mid(FileName, 1, CellLocation) Range("G46").Value = FilePath When I run this code using Excel 97, it gives me the following error: Sub or Funtion not defined for "StrReverse". Works fine on Excel 2K, what am I missing? Thanks in advance, Rohit |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Code for a button to change cell location | Excel Discussion (Misc queries) | |||
file location | Excel Discussion (Misc queries) | |||
Get File location | Excel Discussion (Misc queries) | |||
Location of XLB file? | Excel Discussion (Misc queries) | |||
Specify file location | Excel Programming |