Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Msgbox - Puting current date in a message box

Is there a way to put the current date in a message box. I want to be
able to say hello to the user. Simular to below?

Msgbox = "Hello " & Application.Username & "."

Thanks in advance!!


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Msgbox - Puting current date in a message box

Msgbox = "Hello " & Application.Username & ". " & Format(Date,"dd mmm yyyy")

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"rglasunow " wrote in message
...
Is there a way to put the current date in a message box. I want to be
able to say hello to the user. Simular to below?

Msgbox = "Hello " & Application.Username & "."

Thanks in advance!!


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Msgbox - Puting current date in a message box

I tried what you both reccomended and thank you for the quick reply.
However, I keep getting the following error when using both the the
commands.

Compile Error:
Function call on the left-hand side of assignment must return Variant
or Object.

then
MsgBox = is highlighted.

I just want an ok button to appear on in the message box not a Yes, No,
Ok or Cancel command.

any sugestions?
Thanks!


---
Message posted from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Msgbox - Puting current date in a message box

Get rid of the = character. E.g.,

Msgbox "Hello " & Application.Username & ". " & Format(Date,"dd
mmm yyyy")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"rglasunow " wrote in
message ...
I tried what you both reccomended and thank you for the quick

reply.
However, I keep getting the following error when using both the

the
commands.

Compile Error:
Function call on the left-hand side of assignment must return

Variant
or Object.

then
MsgBox = is highlighted.

I just want an ok button to appear on in the message box not a

Yes, No,
Ok or Cancel command.

any sugestions?
Thanks!


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Msgbox - Puting current date in a message box

Sweet!!!! It worked

--
Message posted from http://www.ExcelForum.com



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Msgbox - Puting current date in a message box

Msgbox = "Hello " & Application.Username & ". "
format(now(),"dd/mm"yy

--
Message posted from http://www.ExcelForum.com

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
Show a message but not in MsgBox RobN[_2_] Excel Discussion (Misc queries) 2 May 30th 08 11:58 PM
Can I automatically enter the current date or current time into a Ben New Users to Excel 7 October 19th 05 03:38 PM
Display Current File Name in MsgBox Paul Moles[_2_] Excel Programming 4 November 26th 03 02:22 PM
Bolding some words in a MsgBox message? Don Wiss Excel Programming 2 November 21st 03 02:25 AM
help to get output from message to the current cell ChachiAZ Excel Programming 5 November 6th 03 03:44 AM


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