macros
Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page
 
view a printable version of this pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Macro's

Macro's

resolvedResolved · High Priority · Version 2007

replyReplyThu 26 Nov 2009, 14:10Delegate Paul said...

Macro's

Designed macro to enable data formatting from a csv file to be maintainined when saved as excel file ... for the specific file name.
Want to be able to enter in a new csv file name which can be saved into excel.
Simon said he had an associate working on a similar request - the solution on this would be most appreciated!

For upcoming training course dates see: Pricing & availability

replyReplyFri 27 Nov 2009, 15:52Trainer Simon said...

RE: Macro's

Hi Paul,

Thank you for your question.

I believe the code I was referring to was to open a dialogue box to choose a file.

My colleague won't be able to send you the code until Monday.

I hope this is ok.

Regards

Simon

replyReplyTue 1 Dec 2009, 16:44Trainer Stephen said...

RE: Macro's

Hi Paul

As requested please find below the code that will open a dialog box so that the user can open a file.

I'm not sure what exactly you want to open, or whether you wish to save an already open file. The code below can be adapted to do all of these things let me know if you need any more help

Dim objFilter As FileDialogFilters
Dim strExcelFile As String

With Application.FileDialog(msoFileDialogOpen)

Set objFilter = .Filters
objFilter.Clear
objFilter.Add "Excel 2003", "*.xls" 'allows for main types of excel workbook
objFilter.Add "Excel 2007", "*.xlsx"
objFilter.Add "Excel 2007 Macro Enabled", "*.xlsm"

.Show

strExcelFile = .SelectedItems(1) 'Picks up path and file name

Application.Workbooks.Open (strExcelFile)


End With


The filters above specify the type of file that the dialog box will display

Regards

Stephen

Tue 8 Dec 2009: Automatically marked as resolved.

 

 

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

Excel tip:

Some examples of CTRL key shortcuts in Excel 2010

Did you know that the old CTRL key shortcuts haven't changed from previous versions of Excel to the 2010 version?

They remain exactly the same:

Ctrl+B for bold
Ctrl+I for italics
Ctrl+P to Print
Ctrl+S to Save

View all Excel hints and tips

forum postCould you please provide a full list of short cut keys?

» Forum post: Short cut keys


Rate this page:
2.2/5 (213 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Management training

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

Training venues London
Client list
FAQ
Pricing and availability
Course details / Syllabus

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

Access courses
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training