Sholtan Singh
Member
Members
Forum Posts: 28
Member Since:
July 29, 2018
July 29, 2018
Offline
Sub STEP15() Dim r As Long Dim m As Long Dim wb1 As Workbook Set wb1 = Workbooks.Open("C:\Users\WolfieeeStyle\Desktop\HotStocks\1.xls") Set ws1 = wb1.Worksheets.Item(1) Application.ScreenUpdating = False With ws1 m = .Range("A" & .Rows.Count).End(xlUp).Row For r = 2 To m If .Range("H" & r).Value < .Range("D" & r).Value Then .Range("K" & r).Value = Application.Ceiling(.Range("K" & r).Value, 0.05) .Range("K" & r).NumberFormat = "0.00" Else .Range("K" & r).Value = Application.Floor(.Range("K" & r).Value, 0.05) .Range("K" & r).NumberFormat = "0.00" End If Next r End With Application.ScreenUpdating = True wb1.Save wb1.Close End Sub
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Riny van Eekelen
Guest(s) 7
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1943
SunnyKow: 1432
Anders Sehlstedt: 937
Purfleet: 415
Hans Hallebeek: 363
Frans Visser: 349
David_Ng: 313
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Ponnivalavan Padmanabhan
Solangel Clark
MUHAMMAD FAISAL
Waqas G
Pala Taurai
Jacob Storoz
Riitta Pennanen
Jake Whaley
Debby Hamic
erl eng
Forum Stats:
Groups: 3
Forums: 25
Topics: 7118
Posts: 31217
Member Stats:
Guest Posters: 50
Members: 34585
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —