Hi,
I link an csv file to Microsoft Sccess and wanted to create a module to do the following.
1. Extract the first url
2. Extract the second url
ColumnA(Page) - From CSV File
1. /www.thisite.com/audio-visual/,http://download.thisite.com2. /www.thisite.com/audio-visual/amps/series/product/
ColumnB (Clicked Page)
Function ClickedPage(sPage As String) As String
ClickedPage = Split(Page, ",")(0)
End Function
ColumnC (EndPage)
Function EndPage(sPage As String) As String
EndPage = Split(Page, ",")(1)
End Function
Problem
I keep getting an error for EndPage for situation where
/www.thisite.com/audio-visual/amps/series/product/
How do I modify the Function EndPage so that
If Split(Page, ",")(1) is empty, then "" .
Else EndPage = Split(Page, ",")(1)
I keep getting the error message "Subscript Out of Range"