Paste MyInput in to a cell

roka001

Board Regular
Joined
Aug 6, 2007
Messages
72
Hi all!

After going through every thread with the word input and inputbox I have no choise but to write a questing.

This is what I want to do:
I'm going to creat a logsheet where the user types his or her user namn.
Code:
Sub log()

myinput = InputBox("Type your user name")
myinput2 = Now
MsgBox myinput & (" saved and it was logged:") & myinput2
Call find_blank_cell
End Sub

So far so good...
What I now want to do is to get the value from input and input2 to the next blank cell.
This is how I did that.
Code:
Sub find_blank_cell()
If Not ActiveCell = "" Then
ActiveCell.Offset(1, 0).Select
Call find_insert_log_space
Else
Call insert_log
End If
End Sub
You could probaly get it to work in a different way... I'm open for suggesions. =)

Now to my problem!

I can't get the inputs to be pasted in to the cells.
I have looked and looked everywhere and cant find a hint or a clue to what to do.

Something like this maybe? This is not the correct code but I dont know how to explain it.
Code:
Sub insert_log()
Myinput2.paste to Activecell 'The date first
ActiveCell.Offset(0, 1).Select
Myinput.paste to Activecell 'Then the user namn
End sub


I'm clueless...
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,214,588
Messages
6,120,412
Members
448,959
Latest member
camelliaCase

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top