muhammad susanto
Well-known Member
- Joined
- Jan 8, 2013
- Messages
- 2,088
- Office Version
- 365
- 2021
- Platform
- Windows
hi all..
how to make the code working well
after running code show message
"Expression.Error: The import FilePath matches no exports. Did you miss a module reference?"
then Go Error
show message:
"Expression.Error: The name 'FilePath' wasn't recognized. Make sure it's spelled correctly"
how to fix the problem? please, give me correct new code
thanks
susant
how to make the code working well
Excel Formula:
let
//Get the file path
FilePathString = FilePath,
//Get length of file path
FilePathLength = Text.Length(FilePathString),
//Get last slash position
LastSlash = Text.PositionOf(FilePathString,"\",Occurrence.Last),
//Get the folder path
FolderPath = Text.Start(FilePathString,LastSlash + 1),
//Get the file name
FileName = Text.End(FilePathString,FilePathLength - LastSlash - 1),
//Get the date modified
DateModified = Folder.Contents(FolderPath){[Name=FileName]}[Date modified]
in
DateModified
"Expression.Error: The import FilePath matches no exports. Did you miss a module reference?"
then Go Error
show message:
"Expression.Error: The name 'FilePath' wasn't recognized. Make sure it's spelled correctly"
how to fix the problem? please, give me correct new code
thanks
susant
Last edited by a moderator: