Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
ExcelNovice
 
Posts: n/a
Default How can I setup an Excel Macro to loop?

I have recorded a Macro which will edit a cell from text to numeric. The
problem I have is that the Macro will only do one cell at a time. I am
working on a huge database and the file I am working with has an apostrophe
at the beginning and ending of the values I need to convert.

I need a quick response as I am under a tight deadline.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Zack Barresse
 
Posts: n/a
Default How can I setup an Excel Macro to loop?

Hello,

Can you post your macro?

--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM


"ExcelNovice" wrote in message
...
I have recorded a Macro which will edit a cell from text to numeric. The
problem I have is that the Macro will only do one cell at a time. I am
working on a huge database and the file I am working with has an
apostrophe
at the beginning and ending of the values I need to convert.

I need a quick response as I am under a tight deadline.



  #4   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default How can I setup an Excel Macro to loop?

There are different ways to do loops, it would be easier to make a suggestion
if we knew what your macro looked like thus far.

But, there may be an easier way to remove those apostrophes than using a
macro.

Highlight your range of data, then do a Find/Replace. Replace ' with blank.
That will eliminate the end apostrophe from all of your data.

Then, in any blank, unused cell, enter the number 1. Then copy this cell.
Highlight your range of data, then select "Paste Special". Select "Multiply"
from the Paste Special window, then click OK. All of your data will now be
multiplied by 1, which will convert it to a number, without changing the
value.

HTH,
Elkar


"ExcelNovice" wrote:

I have recorded a Macro which will edit a cell from text to numeric. The
problem I have is that the Macro will only do one cell at a time. I am
working on a huge database and the file I am working with has an apostrophe
at the beginning and ending of the values I need to convert.

I need a quick response as I am under a tight deadline.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Help In Excel welshlad Excel Discussion (Misc queries) 14 October 26th 05 02:34 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Relative Ranges in excel macro edself Excel Discussion (Misc queries) 6 October 13th 05 02:02 PM
Relative Ranges in excel macro edself Excel Worksheet Functions 6 October 13th 05 02:02 PM
Macro in Excel ByB Excel Discussion (Misc queries) 0 October 5th 05 09:39 PM


All times are GMT +1. The time now is 05:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"