excel vba - How to print or send braces ( ) using VBA sendkeys -


i have following code not sending braces.

sendkeys "a=$(script.sh)",true 

but sending a=$script.sh

braces missing.

try this

sendkeys "a=${(}script.sh{)}", true 

for example

sub sample()     dim retval      retval = shell("notepad.exe ", 1)      appactivate retval     sendkeys "a=${(}script.sh{)}", true end sub 

output

a=$(script.sh) 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -