Darn It, I've got to bring this one up again I'm afraid
I've used the method that Skip re-'splained to me in thread707-1278315![[wink] [wink] [wink]](/data/assets/smilies/wink.gif)
I've got a range from D5 to J28 which is named "EBS_table".
When I run the macro, it stalls at the Autofiltering part with a "400" error Where am I going wrong?
I've used the method that Skip re-'splained to me in thread707-1278315
![[wink] [wink] [wink]](/data/assets/smilies/wink.gif)
I've got a range from D5 to J28 which is named "EBS_table".
When I run the macro, it stalls at the Autofiltering part with a "400" error Where am I going wrong?
Code:
[green]'....Generate random numbers and fill in another table....
'Then go to the AutoFilter bit:[/green]
[EBS_table].AutoFilter Field:=5, Criteria1:="1"
[D6].CurrentRegion.Copy
Range("Z65536").End(xlUp).Offset(1, 0).PasteSpecial _
Paste:=xlValues, _
Operation:=xlNone, _
SkipBlanks:=True, _
Transpose:=False
[EBS_table].AutoFilter
[green]'Carry on and do the rest of the macro....[/green]
It appears to do the Copy, because I can manually select the next blank cell down in column Z and PasteSpecial, Values with (nearly) the desired result. I say nearly, because it copies the header row from D5:J5 - but I don't want that.
Chris
[b][i]Varium et mutabile semper Excel[/i][/b]
[URL unfurl="true"]www.insys-ltd.co.uk[/URL]