Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Incorrect msgPrompt

Hi Rodney,

Try:

Sub Test()
Dim msgPrompt As String, msgTitle As String
Dim msgButtons As Integer
Dim myResult As Integer
msgPrompt = "Error check complete" & Chr(13) _
& "Errors detected " & Range("CNT")
msgButtons = vbOKOnly
msgTitle = "LEDGER COLUMN ERROR CHECK"

MsgBox msgPrompt, msgButtons, msgTitle

End Sub


---
Regards,
Nnorman


"Cheif" wrote in message
...
I have a cell range named CNT. CNT contains the number of machine

detected errors after checking 75 ledger columns. Let's sat there are five.
Therefore, CNT would equal 5. I would like my msgPrompt to read:

Error check complete
Errors detected 5

I can not write line two of the msgPrompt correctly to include a formula

that includes the CNT value. Please help me with this line. Below is my
msgBox macro.

Dim msgPrompt As String, msgTitle As String, msgButtons As Integer
Dim myResult As Integer
msgPrompt = "Error check complete" & Chr(13) & "="Errors detected "&(CNT)"
msgButtons = vbOKOnly
msgTitle = " LEDGER COLUMN ERROR CHECK"
msgResult = MsgBox(msgPrompt, msgButtons, msgTitle)
--
Rodney Getschman
Wisconsin VFW



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Incorrect msgPrompt

Thanks Normon. Just what I wanted. The well known question: "Why didn't I think of that?"
--
Rodney Getschman


"Norman Jones" wrote:

Hi Rodney,

Try:

Sub Test()
Dim msgPrompt As String, msgTitle As String
Dim msgButtons As Integer
Dim myResult As Integer
msgPrompt = "Error check complete" & Chr(13) _
& "Errors detected " & Range("CNT")
msgButtons = vbOKOnly
msgTitle = "LEDGER COLUMN ERROR CHECK"

MsgBox msgPrompt, msgButtons, msgTitle

End Sub


---
Regards,
Nnorman


"Cheif" wrote in message
...
I have a cell range named CNT. CNT contains the number of machine

detected errors after checking 75 ledger columns. Let's sat there are five.
Therefore, CNT would equal 5. I would like my msgPrompt to read:

Error check complete
Errors detected 5

I can not write line two of the msgPrompt correctly to include a formula

that includes the CNT value. Please help me with this line. Below is my
msgBox macro.

Dim msgPrompt As String, msgTitle As String, msgButtons As Integer
Dim myResult As Integer
msgPrompt = "Error check complete" & Chr(13) & "="Errors detected "&(CNT)"
msgButtons = vbOKOnly
msgTitle = " LEDGER COLUMN ERROR CHECK"
msgResult = MsgBox(msgPrompt, msgButtons, msgTitle)
--
Rodney Getschman
Wisconsin VFW




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
results incorrect KMC Excel Discussion (Misc queries) 2 July 18th 08 03:14 PM
Incorrect Am and Pm MrBlackForest Excel Discussion (Misc queries) 2 January 26th 06 03:11 AM
Percentages incorrect Dandub Excel Worksheet Functions 3 January 21st 06 02:24 AM
Incorrect Sum ashlandpmac Excel Discussion (Misc queries) 1 April 15th 05 01:25 AM
Incorrect Sum AshlandPmac Excel Discussion (Misc queries) 1 April 14th 05 10:41 PM


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

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"