How do I reference a Range Based on Variable?

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

Hi,

I want to paste a formula in xlSheet.Range("F4:F" & intMaxRow &
").PasteSpecial but I get an error. How can I reference the range with
intMaxRow variable?

TIA,
Dan
 
i think you can't just put one quote
maybe do chr(34) or whatever the ascii for quotation mark is
 
john said:
i think you can't just put one quote
maybe do chr(34) or whatever the ascii for quotation mark is
Try Range("F4:F" & intMaxRow)

Alan Beban
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top