how do i create
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 » How do I create a Folder and a File with the same name in a pre-

How do I create a Folder and a File with the same name in a pre-

resolvedResolved · High Priority · Version 2007

replyReply Tue 17 Jan 2012, 12:02Delegate Palvinder said...

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

How do I create a Folder and a File with the same name in a pre-

How do I create a Folder and a File with the same name in a pre-specified directory where;
• The Name value is derived from two specific cells from the current sheet. E.g J6 and C10.
• Also then email the current sheet to a specific email

For upcoming training course dates see: Pricing & availability

replyReply Fri 27 Jan 2012, 13:40Trainer Anthony said...

RE: How do I create a Folder and a File with the same name in a

Hi Palvnder, thanks for your query. You'll need to concatenate the values in the cells together, then pass that composite value to a variable. Then use the file system object to create the folder and file:

http://www.tek-tips.com/faqs.cfm?fid=4116

...and then email using one of the techniques here:

http://www.rondebruin.nl/sendmail.htm

Hope this helps,

Anthony

replyReply Thu 9 Feb 2012, 11:57Delegate Palvinder said...

RE: How do I create a Folder and a File with the same name in a

Hi Antony,

That was very useful just what I was looking for
I've only tried a couple of things so far and they work ok
Many thanks
kindest regards
Pal

Fri 3 Feb 2012: Automatically marked as resolved.

 

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

Excel tip:

Outlining - Grouping rows or columns

Highlight want you want to group and press ALT + SHIFT + left cursor arrow

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