Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
U guys are great thanks for all of the help, im starting to get the hang
of this visual basic stuff. Microsoft's editor makes it pretty easy to do. before my questions here is the code im using now... Sub Macro1() Dim x As Long Dim y As Double x = 1 Do While Range("B" & x).Value < "" If IsNumeric(Range("B" & x)) Then Range("B" & x) = Abs(Range("B" & x)) y = y + Range("B" & x).Value End If x = x + 1 Loop MsgBox "Sco " & y * 100 Range("d1") = "Sco" Range("e1") = y * 100 End Sub ok...i have a couple of additional questions tho... 1. in the a colomn there is another number also about 10,000 entrys long. I need the macro to go to the last entry, store it in z or something, then add it to y before it displays it. i guess y will have to change to something else...s seems logical to me being its going to be a score if u didnt know from the code. 2. this is kind of a complicated question...ok..say i run this macro on 20 sheets and i have all of the sheets open. I would like to run another macro that takes the file name, puts it in colomn a (of the new sheet), takes the y value, puts it in b, takes the z value, puts it in c and takes the s value and puts it in d. then...i want to sort all of the rows in decending order by the d colomn (the s value) Once again, any help would be appreciated..you guys are saving me so much time rather then me going to find someone to go do this for me and charge me money... ~chris culp ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007...what is the main programing tool | Excel Discussion (Misc queries) | |||
excel question borderline programing | New Users to Excel | |||
excel programing | Excel Discussion (Misc queries) | |||
Excel Programing Resources | Excel Programming | |||
programing book | Excel Programming |