+ Reply to Thread
Results 1 to 9 of 9

I want to make a macro which can add "=" sign in the beginning of the cell rang containing

  1. #1
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    I want to make a macro which can add "=" sign in the beginning of the cell rang containing

    numbers with commas. EX: A1 contains 1,230,100, A2 contains 1,240,300, A3 contains 2,540,500. The range can be bigger but the Macro should be able to pick up each cell from the range and insert an "=" sign in the beginning. So that A1 will contain =1230100. So the idea is to remove the commas in a range so that the value is calculable

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: I want to make a macro which can add "=" sign in the beginning of the cell rang contai

    Just do a find and replace, replacing comma with nothing
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    Re: I want to make a macro which can add "=" sign in the beginning of the cell rang contai

    Find and replace does not work ( I dont know why), but I have a macro which someone had kindly given me in this forum several years ago. Since I dont understand it, but I use it extensively .... can you please make some changes in it so that it can do the job ?
    Please Login or Register  to view this content.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: I want to make a macro which can add "=" sign in the beginning of the cell rang contai

    How about this then.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    Re: I want to make a macro which can add "=" sign in the beginning of the cell rang contai

    Unfortunately it does not work and highlights the error : cl.Value = "=" & Replace(cl.Value, ",", "")
    Attached Files Attached Files
    Last edited by omega0010; 01-13-2019 at 10:01 AM.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: I want to make a macro which can add "=" sign in the beginning of the cell rang contai

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    Re: I want to make a macro which can add "=" sign in the beginning of the cell rang contai

    Yes it does work but only for a specific range.... whereas that Absolute formula workes for any selected range ...Please help by modifying it further ! Tnx

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: I want to make a macro which can add "=" sign in the beginning of the cell rang contai

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    Re: I want to make a macro which can add "=" sign in the beginning of the cell rang contai

    Solved !
    Absolutely Perfect ! Thank you so much !
    Very Kind of you to spend your time and effort to help dumb people like me
    God Bless !

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 07-12-2017, 05:32 PM
  2. [SOLVED] Make an Exception for sign "\"
    By Biplab1985 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-16-2015, 03:30 PM
  3. [SOLVED] Expanded and collapsed the rows by toggle "+" or "-" sign on left of the text
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-24-2013, 02:49 PM
  4. [SOLVED] split the cell value with sign "|" to make multiple entries to down
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-26-2013, 03:34 AM
  5. How to remove a space before the "=" sign and make the formula works properly?
    By Leosado in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2010, 03:05 PM
  6. If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM
  7. Replies: 6
    Last Post: 01-08-2006, 06:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1