vba code
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 » VBA code

VBA code

resolvedResolved · Urgent Priority · Version 2003

replyReply Tue 13 Sep 2011, 15:39Delegate Christina said...

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

VBA code

Hi there,

I recently had some VBA training, but I am having some difficultly writing a code to wrap the text in cells A1 to K1, this is the code that I have used so far:
Range("A1:K1").Select.Wraptext = True

Also is there an easy way to explain how to get a marco button on the front end saved so that its there everytime you open excel?

Thank you very much!

For upcoming training course dates see: Pricing & availability

replyReply Thu 15 Sep 2011, 12:44Trainer Mark said...

RE: VBA code

Hello Christina,

The correct code is:
Range("A3:C3").WrapText = True

Also you should have the code written or recorded in the Personal Workbook, then add a button to a toolbar through the Tools/Customize menu.

If you attach a button to the actual sheet then it will only appear on that sheet and workbook.

I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Mark
Microsoft Office Specialist Trainer

 

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

Excel tip:

Viewing Many Worksheets

If there are more worksheets in your workbook than there is room to show all their tabs at the bottom of the screen - Right click on the navigation arrows. A list of all your worksheets is shown. You just click on the one that you want to access. If you have more than 15 worksheets, select in the list and choose your worksheet from hundreds.

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