I want to be able to click a button where the code behind the button looks at just one volumn from say A4 to A9999. Whats the best way to do that in Excel Macro
Thanks
I want to be able to click a button where the code behind the button looks at just one volumn from say A4 to A9999. Whats the best way to do that in Excel Macro
Thanks
Are you trying to select the column? Or look at each cell in the column for specific information? Or what? What do you want the button to do?
The basic idea...
Please Login or Register to view this content.
HTH
Regards, Jeff
What jeffreybrown gave you should work. As for the cells with more than 2 decimal places, I haven't a clue how to identify them all. If the cells are formatted as a "Number" and not "General", then here is how to highlight all of the rows that have 3 decimal places. Maybe that can give you an idea. This would go exactly where jeffreybrown has written "'Run macro here"
Please Login or Register to view this content.
Hasan,Please Login or Register to view this content.
This should get everything with more that 2 decimals. Do you want it to always end with A9999 or would you like it to end with the last row in A that has data?
Last edited by Solus Rankin; 07-09-2013 at 10:05 AM.
Thanks,
Solus
Please remember the following:
1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.Highlight the code in your post and press the # button in the toolbar.2. Show appreciation to those who have helped you by clicking below their posts.
3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.
"Slow is smooth, smooth is fast."
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks