Hi Abdul,
I think we don't need to use the below code due to which it changes those cells since a non-numeric found and as soon as a non-numeric cell encounters it exit the macro due the following lines of code. Else Exit Sub End If Bakul, Try the below code: Sub Insertequals() Dim cel As Range For Each cel In Selection If IsNumeric(cel.Value) Then cel.Value = "=" & cel.Value End If Next End Sub Manish Purohit Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world. _____ From: excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com] On Behalf Of Abdul Shakeel Sent: 15 August 2009 20:34 To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: insert = in every cell as prefix with nos & Blank Hi Bakul Try this one Sub Insertequals() Dim cel As Range For Each cel In Selection If IsNumeric(cel.Value) Then cel.Value = "=" & cel.Value Else Exit Sub End If Next End Sub From: excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com] On Behalf Of Dave Bonallack Sent: Saturday, August 15, 2009 7:00 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: insert = in every cell as prefix with nos & Blank Hi Bakul, You'll have to include the formatting lines in the code I sent in order to insert an "=" in front of numbers and into blank cells. Regards - Dave. _____ Date: Fri, 14 Aug 2009 15:02:13 -0700 From: bakulpatel...@yahoo.com Subject: $$Excel-Macros$$ Re: insert = in every cell as prefix with nos & Blank To: excel-macros@googlegroups.com HI Abdul, Is it possible to insert '=' as prefix with nos only. If yes, give me code. Thanks, Bakul --- On Fri, 8/14/09, Abdul Shakeel <shakeel....@gmail.com> wrote: From: Abdul Shakeel <shakeel....@gmail.com> Subject: $$Excel-Macros$$ Re: insert = in every cell as prefix with nos & Blank To: excel-macros@googlegroups.com Date: Friday, August 14, 2009, 1:42 AM This code just a refined shape of Dave code for multi cell selection, just put the code in any vba module select your desired range where you want to put "=" sign and press Alt+F8 & run insert equal macro. Sub InsertEquals() Dim cel As Range With Selection For Each cel In Selection cel.Value = "=" & cel.Value Next End With End Sub From: excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com] On Behalf Of Dave Bonallack Sent: Friday, August 14, 2009 7:03 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: insert = in every cell as prefix with nos & Blank Hi, I think you'll have to use VBA. Have a look at the attachment. Select the cell you want to change, then press Ctrl+q However. the cell is then treated as text, and cannot be used in calculations. Is this what you need? Regards - Dave. _____ From: manoj...@ocimumbio.com To: excel-macros@googlegroups.com Date: Thu, 13 Aug 2009 19:55:41 +0530 Subject: $$Excel-Macros$$ Re: insert = in every cell as prefix with nos & Blank suppose i have list and want to insert "X' or "='' before each no., is there any way to insert the item(x,=) as prefix by using find & Replace method or any other method _____ From: excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com] On Behalf Of Manoj Kukrej Sent: Thursday, August 13, 2009 5:44 PM To: excel-macros@googlegroups.com Cc: vivek.agrawa...@gmail.com; upendrasinghsen...@gmail.com; aind...@gmail.com; dilipan...@gmail.com Subject: $$Excel-Macros$$ Re: insert = in every cell with nos & Blank _____ From: excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com] On Behalf Of vivek agrawal Sent: Thursday, August 13, 2009 5:03 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: insert = in every cell with nos & Blank attached is the file... hope this is the solution required.... Thanks and Regards, Vivek Agrawal Skype ID - vivek.agrawal83 GoogleMoonlight.com - Saving energy-Save Earth On Wed, Aug 12, 2009 at 8:44 PM, Manoj Kukrej <manoj...@ocimumbio.com <http://us.mc337.mail.yahoo.com/mc/compose?to=manoj...@ocimumbio.com> > wrote: Hi want to insert "=" sign before each no. for variety of calculation purpose see attached file Manoj _____ From: excel-macros@googlegroups.com <http://us.mc337.mail.yahoo.com/mc/compose?to=excel-mac...@googlegroups.com> [mailto:excel-macros@googlegroups.com <http://us.mc337.mail.yahoo.com/mc/compose?to=excel-mac...@googlegroups.com> ] On Behalf Of Aindril De Sent: Wednesday, June 24, 2009 9:15 PM To: excel-macros@googlegroups.com <http://us.mc337.mail.yahoo.com/mc/compose?to=excel-mac...@googlegroups.com> Subject: $$Excel-Macros$$ Re: replace when large data in cell Sorry forgot to upload the file... Regards, Andy On Wed, Jun 24, 2009 at 8:38 PM, Aindril De <aind...@gmail.com <http://us.mc337.mail.yahoo.com/mc/compose?to=aind...@gmail.com> > wrote: Dear Sandeep, Please find attached the updated file. It shd not be an issue. Just say select all... then Ctrl + H to open the Find Replace box... In Find type " In Replace type \" Then press replace all. Regards, Andy On Wed, Jun 24, 2009 at 6:46 PM, Sandeep <sandymau...@gmail.com <http://us.mc337.mail.yahoo.com/mc/compose?to=sandymau...@gmail.com> > wrote: Hi Everybody, Please help me. I have a file with a lot of inverted commas " in cells which should be \" and many cells have large data due to which 'find and replace' command not working and saying too long formula. How can I replace this. Please help me. Thanks You How can I replace _____ This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions that are unlawful. This e-mail may contain viruses. Ocimum Biosolutions has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. _____ This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions that are unlawful. This e-mail may contain viruses. Ocimum Biosolutions has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. _____ This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions that are unlawful. This e-mail may contain viruses. Ocimum Biosolutions has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. </html _____ Check the daily blob for the latest on what's happening around the web What goes online, stays online <http://windowslive.ninemsn.com.au/blog.aspx> --~--~---------~--~----~------------~-------~--~----~ ---------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 5,200 subscribers worldwide and receive many nice notes about the learning and support from the group. Our goal is to have 10,000 subscribers by the end of 2009. Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe -~----------~----~----~----~------~----~------~--~---