[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Macro Required

Posted on 2011-02-17
10
Medium Priority
?
188 Views
Last Modified: 2012-05-11
Hi

I would like to create a macro button on my users Excel 2003 to check a column P for entries and change it the cell to something else.

Example for what the macro data needs to be checked/changed to.

Full Time Employment needs to be changed to Employed FT
Part Time Employment needs to be changed to Employed PT.

Possibly done by a formula?


0
Comment
Question by:daiwhyte
[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
  • 4
  • 2
  • 2
  • +1
10 Comments
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 34914987
You could just use Find/Replace for that?
0
 

Author Comment

by:daiwhyte
ID: 34915002
Yes, but I want to automate it so my users only have to hit the macro button and viola - its done.
0
 
LVL 33

Expert Comment

by:jppinto
ID: 34915007
Agree with Roy, why invent the wheel when it's already been invented! :)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 33

Expert Comment

by:jppinto
ID: 34915014
You would need to define ALL the text that you want to change and for what you want to change it! If this is not a fixed list, then it's the same as making Ctrl+H to open the Find and Replace dialog box and entering the information to search and the replacement text...
0
 

Author Comment

by:daiwhyte
ID: 34915150
This is the beginning of a macro which I would like to transform quite a few fields, once I got the macro doing the Employed bit, I will add the next macro function to it.

I hear what your saying thou guys - if it was just for the one column - the users would be able to use the find/replace without any hitches.
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 34915220
It's basically just:
Range("P:P").Replace "Full Time Employment", "Employed FT"

Open in new window

and so on.
0
 
LVL 3

Accepted Solution

by:
mohanupadhyay earned 2000 total points
ID: 34915232
0
 
LVL 3

Expert Comment

by:mohanupadhyay
ID: 34915238
Above attached a macro file
Test it , use it
0
 

Author Comment

by:daiwhyte
ID: 34915358
mohanupadhyay, thats it - thank you.

Im going to award the points and will be opening up a new thread for the 2nd part of the process/macro.
0
 

Author Closing Comment

by:daiwhyte
ID: 34915360
Thank you.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

656 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