Set Rows Height also Exception in Range
Solved/Closed
smuneeb
Posts
67
Registration date
Saturday 5 September 2015
Status
Member
Last seen
8 March 2017
-
20 Nov 2015 à 15:27
smuneeb Posts 67 Registration date Saturday 5 September 2015 Status Member Last seen 8 March 2017 - 21 Nov 2015 à 15:34
smuneeb Posts 67 Registration date Saturday 5 September 2015 Status Member Last seen 8 March 2017 - 21 Nov 2015 à 15:34
Related:
- Set Rows Height also Exception in Range
- How to increase wifi range - Guide
- Steam exe main exception - Guide
- How to set out of office in outlook app - Guide
- How to set scale in pdf xchange editor - Guide
- How to set up chromecast - Guide
2 responses
I am not certain what your question is! If that is what you want, then make it so! Are you trying to make a code that will make the changes?
Is the posted code your product, but it doesn't work? Let us know where you are stuck, please. You have done a great ob of stating the issue, but not quite describing what you want out of us! Where are you stuck?
Is the posted code your product, but it doesn't work? Let us know where you are stuck, please. You have done a great ob of stating the issue, but not quite describing what you want out of us! Where are you stuck?
21 Nov 2015 à 02:15
Thanks for response their is no error in the code I think that their any kind of loop and any exception condition could be apply because after every 15 rows same condition is applied 4 times for the rows.
Loop and exception condition can shorten and more conceptually program this code that I think,
Thanks
21 Nov 2015 à 14:17
Sub setheightloop() Dim setrows() Dim n As Integer setrows = Array(11, 16, 21, 26, 31, 36) Rows("10:40").RowHeight = 12.75 For n = LBound(setrows) To UBound(setrows) Rows(setrows(n)).RowHeight = 25.5 Next n End Subor like this:
21 Nov 2015 à 15:34
Both are perfect but second is much more like it
Thanks