rob,
if you recorded the macro then likely there's a line of code like 'cells.select' that refers to the range of cells you're copying to the next page. using that line will copy everything including the controls. then if you right-clicked the access the copy option, there'll be line like 'range("A1").select'. if this is the case, delete these two lines (otherwise just the first one) and replace them with 'range("a1:z100").select', where ("a1:z100") is the name of the range containing the data you want to copy. doing it this way won't copy the controls with it, even if they;re within the range you've specified...
neo
there are my macro copy instructions...how do i fix them to not copy buttons?
Here is part of the macro I'm using. How would I modify this to prevent it form copying buttons?:
Dim RangeSelect As String
RangeSelect = "A1:" & Range("A1").End(xlToRight).End(xlDown).Address
Sheets(CurrentSheetName).Range(RangeSelect).Copy _
Destination:=Sheets("Prelim Sort").Range("A1")
Thanks
Re: there are my macro copy instructions...how do i fix them to not copy buttons?
Rob
Another way, unless you have any reason not to, is to set the button property to "don't move or size with cells" should also stop them copying.
Regards
well...do i feel dumb now...thanks a lot! again :)
Another way, unless you have any reason not to, is to set the button property to "don't move or size with cells" should also stop them copying. Regards
: Here is part of the macro I'm using. How would I modify this to prevent it form copying buttons?