+ Reply to Thread
Results 1 to 9 of 9

ABS Formula in VBA

  1. #1
    Registered User
    Join Date
    03-28-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    27

    ABS Formula in VBA

    Dear Solution Provider,

    I have one excel work book in which I have written a VBA program for copying the Data from On sheet to another , But I want to change the sign of a number from Minus to plus Example : -1234 so iwant the figure of 1234.

    For you ready reference I have attached the file also.

    Vajeed
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    Use VBA's Abs function.
    If posting code please use code tags, see here.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: ABS Formula in VBA

    Hi,

    Try

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: ABS Formula in VBA

    Or

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    03-28-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: ABS Formula in VBA

    Thanks a lot its working , Very Good Answer

  6. #6
    Registered User
    Join Date
    03-28-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: ABS Formula in VBA

    Im Sorry gto disturb you again, What is D stand for.. in your Code................ and let me know if I have three rows in the details sheet how to do.Vajeed

  7. #7
    Registered User
    Join Date
    03-28-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: ABS Formula in VBA

    in Actual Excel Sheet No d column will be there attached is just for your information.

  8. #8
    Registered User
    Join Date
    03-28-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: ABS Formula in VBA

    Can you please tell me how to use,

  9. #9
    Registered User
    Join Date
    03-28-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: ABS Formula in VBA

    Please tell me the below details.
    1 ) What if I have en number of rows and columns

+ 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: 6
    Last Post: 10-08-2009, 03:45 AM

Tags for this Thread

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