microsoft office training excess - macrovba code create new
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » microsoft office training excess - MAcro/VBA code to create a new directory according to date

microsoft office training excess - MAcro/VBA code to create a new directory according to date

The UK's most regular instructor-led training courses.
Training information: microsoft office training excess · Excel courses · Microsoft Excel Training UK
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Low Priority · Version Standard

MAcro/VBA code to create a new directory according to date

Daniel has attended:
Excel Advanced course

by - delegate Daniel [2 posts] (2007 Apr 4 Wed, 12:43) replyReply

Hi.
I am using a workbook with quite a few different tabs for each individual supplier.
Each period end i have to copy a tab and create a workbook with the supplier name which has ONLY one tab.

Say i have 30 suppliers in Workbook one each in the individual tab. I used to right-click the tab, "move or copy", "new book" tick copy, "ok", and just save the new file. THen i'd have 30 new files that i sent out as a statement. Problem is that i have more than 30 of those :) but even with that quantity its quite painful to do every 4 weeks.

I tried to record a macro, but the directory where the file is saved is changing according to the period we're in, e.g. 1 to 13.

I tried to record a macro to do that, but it would save the files in the same bloody directory (pd 4 for example it would save in pd 5 as its where the macro's been created).
The filename stays always the same, the directory changes in range from:
c:dirPD1statement.xls
c:dirPD2statement.xls
...
c:dirPD13statement.xls

I need to have some sort of a lookup that fetches the Period number (it is on every sheet in the workbook), and inputs it in the file save as directory.
Or if you could think of any better way of doing it, then do tell.

Let me know if you need some more info.

Kind regards,
Daniel

Excel Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Dec 4 Thu Bayswater 3 book now £195 £205
2007 2008 Dec 8 Mon Bayswater 3 book now £224 £224
2007 2008 Dec 9 Tue Bloomsbury 0 FULL    
2002/XP 2008 Dec 9 Tue Tooting 0 FULL    
2003 2008 Dec 11 Thu Southwark 7 book now £188 £215
2007 2008 Dec 16 Tue Bayswater 6 book now £207 £215
Full Schedule: See all 109 Excel Intermediate course dates.
Bookings currently available until 25th November 2009.

RE: MAcro/VBA code to create a new directory according to date

by - delegate Daniel [2 posts] (2007 Apr 4 Wed, 13:22) replyReply

Um... the filename should also vary, could also be like the name of the tab or smthn.


Thx
d


Related articles

· Features of Microsoft Excel that assist in Analysis of Financial Data
· Training Budgets In A Bad Economy
· Excel in the Home Office
· Creating Smarter, Customized Invoices for your Small Business with Microsoft Excel
· Why Excel Training (Sometimes) Doesn't Work and What You Can Do About It

Excel tip:

Printing spreadsheets without opening them first

Here's a fast way of printing a spreadsheet from Windows Explorer/My Computer.

Go to the location where the spreadsheet is saved on your computer, then right-click on the icon next to the document and select Print from the menu.

The spreadsheet will automatically open, print and close itself.

View all Excel hints and tips

Rate this page:
4.0/5 (3 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

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

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz