View Single Post
 
Old 02-09-2023, 09:18 AM
syl3786 syl3786 is offline Windows 10 Office 2019
Advanced Beginner
 
Join Date: Jan 2023
Posts: 97
syl3786 is on a distinguished road
Default Is it possible to extract mp3's start time and end time by VBA?

Hi Community,

I am investigating on how to extract mp3's start time and end time by VBA.

For example:

Sub test()

Selection.InlineShapes.AddOLEObject ClassType:="Package", FileName:= _
"D:\users\123.mp3" _
, LinkToFile:=True, DisplayAsIcon:=False

End Sub

This macro can only insert the mp3 to the word file. I searched many forums but in vain. There seem no similar macros to extract the mp3 file's start time and end time to word processor. Is it possible to extract a lot of mp3files' start time and end time in the Microsoft Word by VBA?

Your help would be greatly appreciated.
Reply With Quote