I have recorded a macro which is as followed:
is there any way to write it in a smaller way. such as by using loop?HTML Code:
Please help me.
I have recorded a macro which is as followed:
is there any way to write it in a smaller way. such as by using loop?HTML Code:
Please help me.
Last edited by mithil; 10-29-2010 at 09:46 PM.
Here's the loop but I'm sure there's a better way:
![]()
Please Login or Register to view this content.
Regards
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Or,
@mithil - please retitle your thread to something more appropriate - "optimise code" or some thing along those lines![]()
Please Login or Register to view this content.
Last edited by DonkeyOte; 10-29-2010 at 03:11 AM. Reason: missing )
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks