+ Reply to Thread
Results 1 to 8 of 8

'ABSOLUTE Value VBA & HH Value

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-17-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    115

    'ABSOLUTE Value VBA & HH Value

    I need to convert a cell value to the absolute value through VBA (if negative, make it positive)
    A formula needs to be converted into its value (like pressing F9 on any formula to makeit the result)
    Last edited by excelcandy; 10-15-2013 at 03:43 PM.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: 'ABSOLUTE Value VBA & HH Value

    if you want to make a numeric value absolute, maybe use abs function. Abs(Range("A3").value))

  3. #3
    Forum Contributor
    Join Date
    09-17-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: 'ABSOLUTE Value VBA & HH Value

    Thanks, and part 2 ?

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: 'ABSOLUTE Value VBA & HH Value

    I don't understand your part 2 sorry.

  5. #5
    Forum Contributor
    Join Date
    09-17-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: 'ABSOLUTE Value VBA & HH Value

    when you select the content within a cell and press F9 it deletes the formula and inserts the result

    example
    before
    6*2
    after
    12

    -> no formula left, vanishes
    Last edited by excelcandy; 10-09-2013 at 04:29 PM.

  6. #6
    Forum Contributor
    Join Date
    09-17-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: 'ABSOLUTE Value VBA & HH Value

    Abs(Range("A3").value))
    is not working! just goes red - syntax error

  7. #7
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: 'ABSOLUTE Value VBA & HH Value

    Can you post your workbook?

  8. #8
    Forum Contributor
    Join Date
    09-17-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: 'ABSOLUTE Value VBA & HH Value

    no, sorry this is not working. Abs(Range("A3").value)) does not work

+ 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: 0
    Last Post: 04-08-2013, 05:08 AM
  2. absolute value of sheet to absolute cell sheet?
    By hmac13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2009, 11:31 AM
  3. Absolute references aren't absolute?
    By Sir Spike in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-19-2007, 10:21 PM
  4. [SOLVED] Absolute value
    By Sally Mae in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2006, 03:30 AM
  5. How can I do an Absolute Cell Reference but non Absolute Cell Pais
    By John in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2005, 02:05 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