formatting reports
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Formatting in reports

Formatting in reports

resolvedResolved · Medium Priority · Version 2007

replyReply Fri 12 Dec 2008, 16:03Delegate Dave said...

Dave has attended:
Excel Advanced course
Excel VBA Intro Intermediate course

Formatting in reports

I will need to be able to create formatted reports with typical tables on a number of worksheets

Is there a way to create a template object, or series, that I can call rather than cutting and pasting into the worksheet ranges separately

For upcoming training course dates see: Pricing & availability

replyReply Wed 7 Jan 2009, 14:29Trainer Stephen said...

RE: formatting in reports

Hi Dave

Thank you for your question

It is possible to write a procedure that would;
1. Create a new workbook
2. Place entries and value directly into certain cells
3. Format various cells as required.

as an example, the following code snippet shows you how to create a workbook ad some values and do some basic formatting


Application.Workbooks.Add

ActiveWorkbook.Sheets(1).Range("A1").Value = "My New Template"

ActiveWorkbook.Sheets(1).Range("A1").Interior.Color = vbRed

ActiveWindow.DisplayGridlines = False

ActiveWorkbook.Sheets(1).Columns("A").EntireColumn.AutoFit


Hope this is useful

Regards

Stephen

Wed 14 Jan 2009: Automatically marked as resolved.

 

Please browse our web site to find out more about
best training excel intermediate and other Microsoft training courses.

Excel tip:

Bring up formatting dialog box

Ctrl+1

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard