On 05/05/2016 08:15, Allen wrote:
I think it will pass &msheet as a string instead of whatever msheet is Al
Yes, you don't need to use & when doing automation.
E.g.
cCell = "B" + ALLTRIM(STR(nRow)) && get some data from a table e.g. B1 B2 etc objexcel.Range(cCell).Select
cRow = ALLTRIM(STR(nRow)) + ':' + ALLTRIM(STR(nRow)) && could be 45:45 72:74 etc OBJexcel.Rows(cRow).RowHeight = 93
Peter
This communication is intended for the person or organisation to whom it is addressed. The contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you have received this message in error, please notify us immediately by telephone or email.
www.whisperingsmith.com
Whispering Smith Ltd Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700 Fax:0161 831 3715
London Office:17-19 Foley Street, London W1W 6DW Tel:0207 299 7960