LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default macro to input data

Assuming entry is prompted by a
CommandButton:

Private Sub CommandButton1_Click()
Dim strIn As String
Do
strIn = InputBox("Enter data.")
iRow = iRow + 1
Sheets("Sheet1").Cells(iRow, 1) = strIn
Loop Until strIn = ""
End Sub

HTH,
Merjet


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a macro for data input. Gunti Excel Discussion (Misc queries) 2 February 3rd 09 08:06 AM
Macro Data Input rbiggs Excel Discussion (Misc queries) 10 December 10th 06 11:09 PM
write a macro to input data JPreeshl Excel Discussion (Misc queries) 2 May 6th 06 09:25 PM
Use a static set of data for input into a macro cdb Excel Discussion (Misc queries) 2 March 16th 06 03:50 PM
write macro to input data Macro Help New Users to Excel 4 December 30th 05 12:10 AM


All times are GMT +1. The time now is 03:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"