Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42301

adding a minus sign to a copied figure in excel

$
0
0
Hi
i copy figure from one excel files like this
Code:

oRng = oWSSheet.Cells.Find("OVERDRAFT EXPENSE (43979000)", , _
Excel.XlFindLookIn.xlValues, Excel.XlLookAt.xlPart, _
Excel.XlSearchOrder.xlByRows, Excel.XlSearchDirection.xlNext, False)
        ' MsgBox("Value '" & oRng.Value & "' found at '" & oRng.Address)
        Me.oveexp = oRng.Offset(0, 5).Value
        oRng = Nothing

and they get displalyed in a difference excel file like this
Code:

oBook.Worksheets(1).Cells(2, 3).value = _oveexp
if that figure didnt have a minus sign init and i wanted to put 1 in how can this be done.
also sometimes there might be a minus sign with the value and i want to remove it how can this also be done

Thanks

Viewing all articles
Browse latest Browse all 42301

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>