excel - VBA Error Compile: Expected: Expression -


i working on homework , can't figure out why code won't work. assignment request name respond in red text in b10.

here code:

enter image description here

any great- thanks!

consider:

sub qwerty()     sheets("mynewsheet").activate     range("b10")         .font.colorindex = 3         strname = application.inputbox(prompt:="please enter name.", type:=2)         .value = strname     end end sub 

Comments

Popular posts from this blog

Change the color of an oval at click in Java AWT -

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -