Solved

VBA Replace

Posted on 2013-11-14
4
215 Views
Last Modified: 2013-11-14
Hi,

Have this:

Call Date: 09/13/14

Dim CallDate As String
CallDate = Replace("Call Date: ", "Call Date: ", "")

I just want the 09/13/14 to be the end value and remove "Call Date: " completly
0
Comment
Question by:Computer Guy
[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
4 Comments
 
LVL 47

Expert Comment

by:Martin Liss
ID: 39647998
Is "Call Date: 09/13/14" in a cell? If so then if it's in A1

Range("A1").Value = Replace(Range("A1").Value, "Call Date:", "")
0
 
LVL 35

Expert Comment

by:Kimputer
ID: 39648004
You should read the hints better when typing in the function:

CallDate = Replace(CallDate, "Call Date: ", "")

Open in new window

0
 
LVL 3

Author Comment

by:Computer Guy
ID: 39648032
@Kimputer

Hi,

I tried that, but it removes the entire line of data "Call Date: 09/13/14"
0
 
LVL 35

Accepted Solution

by:
Kimputer earned 500 total points
ID: 39648078
Can you please use copy & paste for my code ? I tested it here on Excel 2007
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

759 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