View Single Post
 
Old 04-27-2012, 04:21 PM
Colin Legg's Avatar
Colin Legg Colin Legg is offline Windows 7 32bit Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

I haven't tested your code but you need to concatenate your SName string variable (and also include ' to allow for spaces within the sheet name):
Code:
"Sheets(Sname)!R1C1:R46C2",
becomes:
Code:
"'" & Sname & "'!R1C1:R46C2",
__________________
Colin

RAD Excel Blog
Reply With Quote