Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2007

Tip: Looking for answers? Try searching our database.

Input Box Formatting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Doctorjones_md - 31 Jan 2007 20:02 GMT
I have the following code with pops up a  conditional message box and
inserts Text into Cell D10 (which is prepopulated using =Now() to insert
Date/Time.  I need format of Cell D10 to change to General so that the Text
"Closed" -- inserted by the Input Bos will display properly.

Here's my code:

   If MsgBox("Is this a Closed Deal?", vbQuestion + vbYesNo) = vbYes Then

Sheets("Analysis").Range("D10").Value = InputBox("Enter CLOSED for a Closed
Deal and CLICK OK, or CLICK Cancel to save an Opportunity?")

   End If
'Call RollupTrackingSpecificData

End Sub
=================
How would I modify the code to ensure that the date in the Input  Box is
displayed at text in D10?

Thank you in Advance
Corey - 31 Jan 2007 20:36 GMT
works fine for me as is??
>I have the following code with pops up a  conditional message box and
>inserts Text into Cell D10 (which is prepopulated using =Now() to insert
[quoted text clipped - 17 lines]
>
> Thank you in Advance
JLGWhiz - 31 Jan 2007 23:38 GMT
You can insert this line before your input box just to be sure.

ActiveSheet.Range("$D$10").NumberFormat = "General"

> I have the following code with pops up a  conditional message box and
> inserts Text into Cell D10 (which is prepopulated using =Now() to insert
[quoted text clipped - 17 lines]
>
> Thank you in Advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.