Hi All,
I have a procedure which allows the user to export a filtered recordset from an Access subform to Excel (using the CopyFromRecordset method). I am in the process of making sure the resulting excel worksheet is formatted appropriately.
I would like to add borders to the exported records (not the entire sheet), but the number of records will vary from export to export, so I cannot set a range based on known start and end - ie ("A3:A100").
Can anyone tell me how I can set my range to include all cells which contain data?
I've come across examples which show how to identify the last row with data - ie .End(xlDown) - but I can figure out how to use that value in the range.
Thanks!
I have a procedure which allows the user to export a filtered recordset from an Access subform to Excel (using the CopyFromRecordset method). I am in the process of making sure the resulting excel worksheet is formatted appropriately.
I would like to add borders to the exported records (not the entire sheet), but the number of records will vary from export to export, so I cannot set a range based on known start and end - ie ("A3:A100").
Can anyone tell me how I can set my range to include all cells which contain data?
I've come across examples which show how to identify the last row with data - ie .End(xlDown) - but I can figure out how to use that value in the range.
Thanks!