Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,533
- Office Version
- 365
- 2016
- Platform
- Windows
My code used to work. I don't know now why I am getting a "Compile Error: Ambiguous name detected: ~" with the line highlighted in red below.
I stepped through the 'Test' sub and didn't receive any errors, so not sure what this is all about.
Rich (BB code):
Private Sub Worksheet_Change(ByVal target As Range)
'Application.EnableEvents = False
Dim wshmain As Worksheet
Dim wshlists As Worksheet
Set wshmain = Worksheets("Main")
Set wshlists = Worksheets("Lists")
Select Case target.Address(0, 0)
'call procedure when cell D1 (report date) changes
Case "D1" 'New Date Entered
Call Test 'test to determine whether reconciled database exists. Create missing database, or open existing database.
I stepped through the 'Test' sub and didn't receive any errors, so not sure what this is all about.