saveasfilenameautogeneratedlook
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 VBA Training and help » Saveasfilename...auto-generated..look into sheet at given cell..

Saveasfilename...auto-generated..look into sheet at given cell..

resolvedResolved · Low Priority · Version 2007

replyReplyFri 8 Jan 2010, 10:46Delegate Ludovic said...

Saveasfilename...auto-generated..look into sheet at given cell..

There is a macro I run every week. It uses a template, fills it in with new data, and I want it to then save this new data as a new document under the heading GaS UK wk no x. x this week being week 1, next week, wk 2, and so on.

I believe the code is smth like this:
ActiveWorkbook.SaveAs Filename:=GaS%20UK%20wk + week_no + .xls",

Somewhere in the macro I will have to define what week_no is.
I could do it by having it as reading week_no = cell F5

How would I go about doing that in code, and where would I put it. Presumably the code goes above the ActiveWorkbook.SaveAs Filename..comand

(Another way it could be done is by somehow translating the date I enter into the macro itself.

At the very top there's

day_date1 = Day.Value + "/" + Month.Value + "/" +YearFigure.Value

desired_path = Day.Value + Month.Value + YearFigure.Value

I suppose I could somehow translate that into a week number which could be used to save the file name...???)

Whichever is easier, help is much appreciated!

For upcoming training course dates see: Pricing & availability

replyReplyTue 26 Jan 2010, 16:14Trainer Jacob said...

RE: Saveasfilename...auto-generated..look into sheet at given ce

Hi Ludovic

Thanks for your post I have emailed you directly with further information.

Regards

Jacob

Tue 2 Feb 2010: Automatically marked as resolved.

 

 

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

Excel tip:

Display pictures on Chart Data Point

Replacing a single chart data point bar with a picture.
Step 1: Left click on a bar. Then, wait, and do a second single click on the bar. This will select just one data point.

Step 2: Right click on the bar and select Format Data Point.

Step 3: On the fill effects tab, choose a picture. Browse for a picture for that bar. Indicate if you want it to be stretched or stacked. Repeat for each bar.

View all Excel hints and tips

forum postHow do I get the data to appear on the web - looking at loading tables onto our website

» Forum post: Access


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