[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Command button help

Posted on 2012-08-21
1
Medium Priority
?
821 Views
Last Modified: 2012-08-21
Private Sub CommandButton2_Click()

ActiveCell.Value = DateValue(Date)
ActiveCell.Offset(0, 1).Select

End Sub

How do I determine the format to always be "dd/mm/yy" ?

Thanks for your help
0
Comment
Question by:Kiwi-123
1 Comment
 
LVL 35

Accepted Solution

by:
Norie earned 2000 total points
ID: 38318631
Use the Format function.
ActiveCell.Value = Format(Date, "dd/mm/yy")

Open in new window

0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question