Yes, you can use the Crossbow Expert feat in this manner. A ranged spell attack is indeed a ranged attack.
Does crossbow expert work with Eldritch Blast?
Eldritch Blast is a Cast a Spell action – not the Attack action. Eldritch Blast is also not a one-handed melee weapon. So no can do.
Does Magic initiate count as spellcasting?
No, feats like Magic Initiate do not grant either the Spellcasting nor Pact Magic features. Racial Spellcasting also doesn’t count.
Can you dual wield crossbows DND?
The only possible way to dual wield crossbows would be to pre-load them first. There are no official rules for this, but as DM you could try to work something out with your player.
Can you use crossbow expert with a shield?
No, you can’t load a hand crossbow while holding a shield. The errata added a new condition to the Ammunition property: Loading a one handed weapon requires a free hand.
How to use crossbow expert 5e feat in DND?
Noticed in PHB, there was no equal of this Crossbow Expert for bows, especially the feature that negates the drawback for crossbow users firing within 5 ft of a hostile monster. Sharpshooter + Crossbow Expert (5e Optimized Character Build.)
Do you suffer disadvantage when you roll crossbow expert?
Yes, it’s intentional. When you make a ranged attack roll within 5 feet of an enemy, you normally suffer disadvantage ( PH, 195). The second benefit of Crossbow Expert prevents you from suffering that disadvantage, whether or not the ranged attack is with a crossbow.
Do you ignore the loading quality of a crossbow?
You ignore the loading quality of crossbows with which you’re proficient. Being feet of a hostile monster does not impose disadvantage on your ranged attack rolls.
Can a hand crossbow be used for both attacks?
A hand crossbow is a one-handed weapon, so it can, indeed, be used for both attacks, assuming you have a hand free to load the hand crossbow between the two attacks. How does the Lucky feat interact with advantage and disadvantage?