Code:
If month <= 9 Then
source_dizin = "G:\HOME\MALIKONT\_Hazine_Kontrol\TCU_" & year & "\Bilanço_Kontrolleri\Core_Pozisyon\(0" & month & ")_" & mmonth
source_file = source_dizin & "\CORE-MİZAN Pozisyon Kontrolü_" & year & "-0" & month & "-" & first_day & ".xlsx"
Else
source_dizin = "G:\HOME\MALIKONT\_Hazine_Kontrol\TCU_" & year & "\Bilanço_Kontrolleri\Core_Pozisyon\(" & month & ")_" & mmonth
source_file = source_dizin & "\CORE-MİZAN Pozisyon Kontrolü_" & year & "-" & month & "-" & first_day & ".xlsx"
End If
'pozisyon dosyası açma
[COLOR=#ff0000]Workbooks.Open (source_file), ReadOnly[/COLOR]
wb_core = ActiveWorkbook.Name
here is the part of my macro where it gives debug on Workbooks.Open (source_file), ReadOnly i couldn't figured out whats the problem please help