Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Inputbox information sent to cell A2
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Inputbox information sent to cell A2
Very close John
try: Dim myCell As Range Set myCell = Worksheets("Sheet1").Range("A2") myCell.value = InputBox("What Year to display?") Cheers Simon Blog: www.smurfonspreadsheets.net John wrote: 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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Inputbox information sent to cell A2
Thank you very much Simon
It works great. Regards John "Simon Murphy" wrote in message ... Very close John try: Dim myCell As Range Set myCell = Worksheets("Sheet1").Range("A2") myCell.value = InputBox("What Year to display?") Cheers Simon Blog: www.smurfonspreadsheets.net John wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
put inputbox input into a cell | Excel Programming | |||
Inputbox to pull cell location | Excel Programming | |||
inputBox if cell " ? | Excel Programming | |||
InputBox: Display Cell Content not Cell Ref ? | Excel Programming | |||
From Cell to InputBox | Excel Programming |