Police were called to an address in Scholemoor Avenue, Bradford at about 7.36pm on Thursday after gunshots were reported.
Firearms officers attended and confirmed there had been a discharge with damage caused to a door and window.
The occupants of the address were found to be safe and well.
Further enquiries established that a 21-year-old man had presented himself at hospital with suspected gunshot wounds to his back.
He remains in hospital in a stable condition.
Enquiries are continuing at the scene and anyone with information is asked to contact the Homicide and Major Enquiries Team on 101 or report anonymously to Crimestoppers on 0800 555111.
Stage set for return of Leeds Summer Series
Three jailed over Rochdale machete attack linked to crime feud
Police appeal to trace wanted Bradford man
Wakefield man convicted of manslaughter after pub incident
Nominations open for Blackburn with Darwen Community Volunteer Awards
Woman arrested after attempted robbery in Cheetham Hill
Bradford Council seeks inclusion in grooming gangs inquiry
Former care home worker jailed for 25 years over child abuse offences
Bradford man jailed for sexual assault on teenager
Culture at the Heart of Stockport’s Transformation
South Asian Art Exhibition Opens at Cartwright Hall
Men’s Mental Fitness Programme Launches in Blackburn
Bhangra Nights
The Golden Era
Legal Show
Alim OnAir