?
Solved

Date Format

Posted on 2013-06-21
2
Medium Priority
?
344 Views
Last Modified: 2013-06-21
Hi,
I have some code that does some stuff pretty well, but I am trying to get a cell to have the value of a couple of cells and a varible, this line of code....

 WS4.Range("A2") = WS1.Range("C2") & " to " & Cust & " del " & WS1.Range("E2").Value

works fine in as much as it places the the three values I want into the correct cell but the date part, "(& WS1.Range("E2").Value)" is formatted as dd/mm/yyyy, and I want dd/mmm.
I have been trying for a while now, to no avail.
As always any help is much appreciated.
Thanks
0
Comment
Question by:Stephen Byrom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
Shanan212 earned 2000 total points
ID: 39267113
 WS4.Range("A2") = WS1.Range("C2") & " to " & Cust & " del " & Format(WS1.Range("E2").Value, "dd/mmm")

Open in new window


 try this
0
 
LVL 1

Author Closing Comment

by:Stephen Byrom
ID: 39267524
Brilliant!!
Thanks a lot
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

752 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