enter data to specific cell

S

Sheila

can someone help me with my little problem.

I wish a small macro to enter data into a specific cell by asking me
for data

I want to enter data into 4 different cells by clicking a button and a
pop up asking me what info I require. will assume cells to have data
entered are a1, a2, a3 and a4

hope someone can help.

TIA
sheila
 
D

Dan E

Sheila,
Something like this might work

Private Sub CommandButton1_Click()
myInput = InputBox("Enter your Value")
Range("A1:A4").Value = myInput
End Sub

Puts the same value in A1:A4

Range("A1").Value = myInput
Puts the value in just A1

Dan E
 

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

Top