Inputbox information sent to cell A2

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi Everyone
I know nothing in macro except the recorder, below is something I am trying
to do.
first part to erase cells is working fine but the inputbox I can't seem to
make it work.
Can someone help me please.
Regards
John

Range("R65:R103").Select
Selection.ClearContents
Range("e6").Select
Dim myCell As Range
myCell = InputBox("What Year to display?")
Set myCell = Worksheets("Sheet1").Range("A2")

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top