Autofit Excel Report (1 Viewer)

PNEfinney

New member
Local time
Today, 22:42
Joined
Oct 3, 2019
Messages
19
Hi,

New poster, new to the forum, new to access vba.

Have created a vba module that takes all named reports assigned to any one of 150 and emails a spreadsheet listing all the reports to the recipient.

The issue is that when it arrives, it’s all scrunched up and I can’t seem to see if there’s a way I can specify the report to be auto wrapped by the recipient. Any ideas?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 05:42
Joined
May 7, 2009
Messages
19,231
are you sending through SendObject?
do you have a report for the list, sent as excel file?
 

PNEfinney

New member
Local time
Today, 22:42
Joined
Oct 3, 2019
Messages
19
are you sending through SendObject?
do you have a report for the list, sent as excel file?

Hiya,

Yes sending through sendobject. There’s two parts to the module, the first that searches a linked table for the recipient and compiles a query of name and report name for that person and then then two blank fields for the recipient to complete and return. The second part is the cmd the send as an xlsx file.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 05:42
Joined
May 7, 2009
Messages
19,231
you need to make manual adjustment to the report in design view.
 

PNEfinney

New member
Local time
Today, 22:42
Joined
Oct 3, 2019
Messages
19
Thanks for replying, but are you able to do that when the VBA is creating the report? I will never get the design view cos its all done by the VBA.

As there 185 Recipients and reports being sent, I thought it best to wrap the whole exercise in one loop.
 

Users who are viewing this thread

Top Bottom