Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Promptbox value to go in the next empty cell


Hi,

In my spreadsheet 2 hidden columns, IK and IL , which displays all
user IDs and in column IK and IL displays the name – So - BBob Billy
Bob.

What I want is a macro, which firstly, finds the next empty cell in
column IN, then prompt the user to enter the userid, then do the same
for IM.

Any help is much appreciated.

Cheers


--
harpscardiff
------------------------------------------------------------------------
harpscardiff's Profile: http://www.excelforum.com/member.php...o&userid=25960
View this thread: http://www.excelforum.com/showthread...hreadid=501972

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Promptbox value to go in the next empty cell

Sub GetId()
Dim sID As String
Dim iRow As Long

If Range("IN1").Value = "" Then
Range("IN1").Select
Else
Range("IN" & Rows.Count).End(xlUp).Offset(1, 0).Select
End If
sID = InputBox("Input Id")
If sID < "" Then ActiveCell.Value = sID

If Range("IM1").Value = "" Then
Range("IM1").Select
Else
Range("IM" & Rows.Count).End(xlUp).Offset(1, 0).Select
End If
sID = InputBox("Input Id")
If sID < "" Then ActiveCell.Value = sID

End Sub


--

HTH

RP

"harpscardiff"
wrote in message
news:harpscardiff.21ryom_1137494400.8942@excelforu m-nospam.com...

Hi,

In my spreadsheet 2 hidden columns, IK and IL , which displays all
user IDs and in column IK and IL displays the name - So - BBob Billy
Bob.

What I want is a macro, which firstly, finds the next empty cell in
column IN, then prompt the user to enter the userid, then do the same
for IM.

Any help is much appreciated.

Cheers


--
harpscardiff
------------------------------------------------------------------------
harpscardiff's Profile:

http://www.excelforum.com/member.php...o&userid=25960
View this thread: http://www.excelforum.com/showthread...hreadid=501972



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Promptbox value to go in the next empty cell


Thats Brilliant !! Cheers.


--
harpscardiff
------------------------------------------------------------------------
harpscardiff's Profile: http://www.excelforum.com/member.php...o&userid=25960
View this thread: http://www.excelforum.com/showthread...hreadid=501972

Reply
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
When is a cell empty and how do I empty it. C Brandt Excel Discussion (Misc queries) 5 August 13th 07 05:37 PM
Leaving an empty cell empty GRL Excel Discussion (Misc queries) 4 April 22nd 06 05:47 PM
why a reference to an empty cell is not considered empty Nicoscot Excel Discussion (Misc queries) 10 March 10th 06 05:36 AM
Finding next empty empty cell in a range of columns UncleBun Excel Programming 1 January 13th 06 11:22 PM
Empty cell and a the empty String JE McGimpsey Excel Programming 0 September 13th 04 04:12 PM


All times are GMT +1. The time now is 10:37 AM.

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

About Us

"It's about Microsoft Excel"