I have a range staring with cell "A5" and going to Column "K8+" that I need to copy. My issue is that the number of rows to copy will change. I have the number stored a variable "a" in my coding. how do I code this to work?
Thanks in advance!
I have a range staring with cell "A5" and going to Column "K8+" that I need to copy. My issue is that the number of rows to copy will change. I have the number stored a variable "a" in my coding. how do I code this to work?
Thanks in advance!
Last edited by pingwin77; 07-22-2009 at 10:34 AM.
![]()
Please Login or Register to view this content.
Entia non sunt multiplicanda sine necessitate
You could use
The current region is a range bounded by any combination of blank rows and blank columns.![]()
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
so then do I define "numRows" like the following:
![]()
Please Login or Register to view this content.
You could. I just don't use a as a name for an integer (Byte, Integer, Long) variable.
Thanks! That was exactly what I needed!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks