Results 1 to 8 of 8

Reversing the signs of selected cells - help neededddd

Threaded View

  1. #7
    Registered User
    Join Date
    08-06-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Reversing the signs of selected cells - help neededddd

    @Jindon. great buddy. thanks. one more thing - if I want to have my range defined in format "Cells(rowNo, colNo)", how will the syntax look like?? See my code below, in this case my colno I know. row no, i can change.. but how it will look like in syntax - For Each r In Range("C6,C10,C12") ???

    Suppose I have a code like this -

    Dim Datev As String

    Datev = Sheets("hello").Cells(1, 10).Value
    Datev = Mid(Datev, 4, 2)
    'MsgBox (Datev)

    colNo = 3
    Do While Sheets("hello").Cells(11, colNo).Value <> Datev
    colNo = colNo + 1
    Loop

    Dim r As Range
    For Each r In Range("C6,C10,C12")
    r.Value = Val(r.Value) * -1
    Next

    End Sub
    Last edited by er.twi.fb; 08-12-2013 at 11:13 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. concatenation of cells including citation signs
    By olef4 in forum Excel General
    Replies: 2
    Last Post: 05-02-2011, 09:16 AM
  2. Code which deletes all signs behind a number of signs
    By Mula in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-30-2009, 05:53 AM
  3. How to get rid of $ signs in cells?
    By Andyc7 in forum Excel General
    Replies: 8
    Last Post: 09-02-2007, 12:29 PM
  4. Reversing Cells
    By Warrior01 in forum Excel General
    Replies: 1
    Last Post: 05-14-2007, 01:29 AM
  5. Reversing characters of cells
    By starguy in forum Excel General
    Replies: 12
    Last Post: 06-13-2006, 01:00 PM

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