Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How caa i write a macro to select a block of cells?

Status
Not open for further replies.

pyromaniac

Programmer
Mar 19, 2003
6
GB
I need to be able to write a macro that will select a block of cells. The problem is that the size of the block varies
e.g. January has cells down to 'A21', but february has cells down to 'A50'. So i need the macro to select only the cells with data in. I tried a macro witha loop, but was unable to get it to actually select the cells. PLEASE HELP!!
 
How is the block set out ??
Do you have multiple months in one sheet or is there only ever one month's data in a sheet ??

In the last instance, you should see the FAQs section of this forum as there are at least 2 FAQs that deal with this Rgds
Geoff
"Some cause happiness wherever they go; others whenever they go."
-Oscar Wilde
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top