I have this as part of a bigger macro. Is there a quicker method to setting the titles to the first row of columns other than having the macro select each cell then add the text as shown?Please Login or Register to view this content.
I have this as part of a bigger macro. Is there a quicker method to setting the titles to the first row of columns other than having the macro select each cell then add the text as shown?Please Login or Register to view this content.
Last edited by munkee; 12-18-2009 at 04:02 AM.
Please Login or Register to view this content.
Try this:
Does that help?Please Login or Register to view this content.
You can store the values in an Array if you find it easier to adapt in that manner, eg:
In VBA you rarely need to .Select anything - doing so will slow your code.Please Login or Register to view this content.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Another way
Please Login or Register to view this content.
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