Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Can I make an alert box with with a yes/no question?

I'd like to create a pop-up windo that the user selects yes or no and their
response is recorded in an excel cell
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Can I make an alert box with with a yes/no question?

You never said where you wnated to put the value. This code places the yes or
No in the first empty cell of column A on sheet 1

Sub AddMessage()
With Sheet1.Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)
If MsgBox("Yes or No", vbYesNo, "Yes/No") = vbYes Then
.Value = "Yes"
Else
.Value = "No"
End If
End With
End Sub

--
HTH...

Jim Thomlinson


"Brad N" wrote:

I'd like to create a pop-up windo that the user selects yes or no and their
response is recorded in an excel cell

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
Make a negative response to if question equal zero Ced Excel Discussion (Misc queries) 4 June 25th 06 01:51 AM
How can I make a sound alert using macro in Excel! (But not use speaker) bookworm98 Excel Programming 5 December 11th 03 08:49 AM
How to make an alert system by Excel ? Erche DP Excel Programming 1 August 6th 03 01:53 AM
How to make an alert system by Excel ? Erche DP Excel Programming 0 August 5th 03 05:56 AM
How to make an alert system by Excel ? Erche DP Excel Programming 0 August 5th 03 04:57 AM


All times are GMT +1. The time now is 10:22 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"