Please open attached file and help me modify the code
I need values from column F in ascending order.
Also I need in column G only the values without formula.
Please open attached file and help me modify the code
I need values from column F in ascending order.
Also I need in column G only the values without formula.
Last edited by iscar_marius; 02-11-2009 at 11:03 AM.
I need something like this:
but without ".Select". If I use "Select" this will not work:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Try
![]()
Please Login or Register to view this content.
Entia non sunt multiplicanda sine necessitate
it's not working, thanks anyway![]()
I have this error if I use the above code:
"Run-time error'1004'
The sort reference is not valid . Make sure it's within the data you
want to sort, and the first Sort By isn't the same or blank"
I found some documentation here about my question:
http://msdn.microsoft.com/en-us/libr...ffice.11).aspx
The code posted by "shg" should work but I don't know why it doesn't.
I have 1004 error.
Please help!
My second problem ("Also I need in column G only the values without formula") is solved with the help of this forum user . I added gren code.
My code looks like this now:
Now I only need to add some code that will sort ascending the value from column F. In column "F" I have only numbers.![]()
Please Login or Register to view this content.
Thank you!
I have added the sort to the code I posted to your other thread![]()
Please Login or Register to view this content.
This code will sort ascending also the formatting of the cells from column D, I need only the values to be sorted starting from row 3.
In column D all cell are gray or yellow, if I run the macro, in column "D" I will have cell with the value, colored.
Just adjust the ranges being used.
![]()
Please Login or Register to view this content.
If I use this code:
it will work but,![]()
Please Login or Register to view this content.
I need Column F and G starting with row 3.
I need range "F1:G2" not to be affected!
Please open attached file!
I posted this question also on my other thread, sorry for that!![]()
Or you could do it to a different location and then just copy / pastespecial to move the values.![]()
Please Login or Register to view this content.
Only one problem, I have in range "G11" value 0, I don't need that value!
Please open attached file!
Thank you for your time!
The trailing zero is caused by the blank field header being sorted to the end of the list after the range has been set.
Changing the order of things will resolve it.
![]()
Please Login or Register to view this content.
I have 2 more question:![]()
Please Login or Register to view this content.
1.It's nor possible to modiy the code so we don't need the red code (from above) ?
2.It's nor possible to use this code (Multiply and count_unique) with:
??![]()
Please Login or Register to view this content.
Now the macro run for each "selection" but I would like to run for each "change"!
Advance filter uses the top row as fieldnames. So F2 will need to be cleared after running code.
You need to disable events in order to avoid the Out of Stack Space warning.
![]()
Please Login or Register to view this content.
Thread solved
Thank you!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks