Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Software > Spreadsheets   »   Recording a macro in Excel

 
Thread Tools Display Modes
Question
 
 
#1  
Old Dec 18, 2007, 02:10 PM
CathyDAquarius
New Member
CathyDAquarius is offline
 
Join Date: Dec 2007
Posts: 1
CathyDAquarius See this member's comment history on his/her Profile page.
Recording a macro in Excel

Need a macro that will select the cell one place to the left, edit the content, hit enter, and then move to cell below where started and repeat to end of column (last cell with a value).

Example: 123-456789 is format of cell to be edited - need to remove the hyphen.

Someone had created it for me - and I know they used Concatenate...., but I cannot do it - if I record, it is always going to same cell.

Thank you.

Reply With Quote
 
     

Answers
 
 
Old Dec 19, 2007, 05:17 AM   #2  
Junior Member
mdosh01 is offline
 
Join Date: Dec 2007
Posts: 33
mdosh01 See this member's comment history on his/her Profile page.
It sounds like you are using the "Record New Macro" function in Excel. Is that correct? Or will you be editing the macro directly in the editor?

Also, the use of concatenate is a different issue from it always going to the same cell.

What version of Excel are you using?

Sorry can't more immediately.
  Reply With Quote
 
     
 
 
Old Dec 19, 2007, 05:45 AM   #3  
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 23,864
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
Why do you need a macro? The formula:

=SUBSTITUTE(A1,"-","")

will remove the hyphen from the string. Place that formula in a cell in the same row and change A1 to the address of the cell you want to edit. Then copy the formula down to the end of the column. Finally, Select the column with the formulas and use Copy>Paste Special to paste as Values to the original column.
  Reply With Quote
 
     


Thread Tools
Display Modes

 
Similar Sponsors

Similar Threads
Question Asker Forum Answers Last Post
excel vlookup and auto start macro PeterAV Spreadsheets 1 Feb 5, 2008 10:45 PM
Excel macro total row ssheldon Visual Basic 0 Jun 28, 2007 05:34 AM
Excel: Macro to designate a color based on condition bhaskar kp Spreadsheets 1 Oct 10, 2006 04:35 AM
Excel Macro question NeedKarma Spreadsheets 0 Jul 5, 2005 10:12 AM
How to Automate a macro in excel traka Spreadsheets 4 Jul 4, 2005 05:09 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 01:31 PM.