Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
RAP RAP is offline
external usenet poster
 
Posts: 49
Default First MsgBox. Need help

I've put in my due diligence, but simply can't scratch enough info together
to make this work.

I am checking a selected date on page 1 for existing data on page 2 for that
date. If the data range for that date is empty, I want to continue with the
data entry process. If data has already been entered for that date, then I
need a messagebox to pop up with the following buttons:
1. Go back and select another date
2. The previous data is incorrect. I want to over-write with new data
3. I don't have time for this. Take no action and close this file.

Thanks,
Randy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default First MsgBox. Need help

msgbox 's don't have customizable buttons unless you want to use a couple of
pages of code that accesses the windows API.

You can do this easily with a userform to simulate your custom msgbox.

--
Regards,
Tom Ogilvy


"RAP" wrote in message
...
I've put in my due diligence, but simply can't scratch enough info

together
to make this work.

I am checking a selected date on page 1 for existing data on page 2 for

that
date. If the data range for that date is empty, I want to continue with

the
data entry process. If data has already been entered for that date, then

I
need a messagebox to pop up with the following buttons:
1. Go back and select another date
2. The previous data is incorrect. I want to over-write with new data
3. I don't have time for this. Take no action and close this file.

Thanks,
Randy



  #3   Report Post  
Posted to microsoft.public.excel.programming
RAP RAP is offline
external usenet poster
 
Posts: 49
Default First MsgBox. Need help

Thanks for the info, Tom I'll get to reading about UserForms now.

Randy

"Tom Ogilvy" wrote:

msgbox 's don't have customizable buttons unless you want to use a couple of
pages of code that accesses the windows API.

You can do this easily with a userform to simulate your custom msgbox.

--
Regards,
Tom Ogilvy


"RAP" wrote in message
...
I've put in my due diligence, but simply can't scratch enough info

together
to make this work.

I am checking a selected date on page 1 for existing data on page 2 for

that
date. If the data range for that date is empty, I want to continue with

the
data entry process. If data has already been entered for that date, then

I
need a messagebox to pop up with the following buttons:
1. Go back and select another date
2. The previous data is incorrect. I want to over-write with new data
3. I don't have time for this. Take no action and close this file.

Thanks,
Randy




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default First MsgBox. Need help

Let's say that you want to check the active cell in Sheet1 (date) and see if
that date is in Sheet2 Column A. This checks to see if the date is on
Sheet2.
You can add rw =
worksheetfunction.Match(selection,Sheets("Sheet2") .Columns(1),0)
to find the row on Sheet2 and use that to check cell values...

If WorksheetFunction.CountIf(Sheets("Sheet2").Columns (1), Selection) 0
Then
MsgBox "Date already exists"
Else: MsgBox "Date not there, continue process"
End If


--
steveB

Remove "AYN" from email to respond
"RAP" wrote in message
...
I've put in my due diligence, but simply can't scratch enough info
together
to make this work.

I am checking a selected date on page 1 for existing data on page 2 for
that
date. If the data range for that date is empty, I want to continue with
the
data entry process. If data has already been entered for that date, then
I
need a messagebox to pop up with the following buttons:
1. Go back and select another date
2. The previous data is incorrect. I want to over-write with new data
3. I don't have time for this. Take no action and close this file.

Thanks,
Randy



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
msgbox peyman Excel Discussion (Misc queries) 2 September 29th 07 08:21 PM
Msgbox API RB Smissaert Excel Programming 6 February 24th 05 09:33 PM
Can MsgBox Do This?? foamfollower Excel Programming 4 January 20th 04 12:09 AM
MsgBox Randal W. Hozeski Excel Programming 1 January 2nd 04 08:54 PM
MsgBox Dave Peterson[_3_] Excel Programming 0 July 23rd 03 02:11 AM


All times are GMT +1. The time now is 06:15 AM.

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"