If you cannot modify Macro B in any way, then you may have to call B and set an OnTime script to send a KeyPress string one or two seconds after calling B. :
My previous (Badly typo'ed) suggestion was to modify B thusly
Public Sub MacroB(Optional RemoteInput As String)
'Dim Var As String 'where Var represents the current variable that accepts the InputBoxes value.
'Replace InputBox line with
If RemoteInput = "" Then 'MacroB not called by MacroA
Var =InputBox
Else
Var = RemoteInput
End If
'
'Rest of Code
'
End Sub
The MacroA would call MacroB like this
Sub MacroA90
MacroB "SomeValue"
Note that this change does not in any way affect the normal human usage of the MacroB.