PC Review Forums Software Windows XP & Applications Excel VBA - Saving workbooks and folders with MkDir and ChDir

Reply
 
Thread Tools Rate Thread
Old 28-04-2008, 09:28 AM   #1
simonlavender
Junior Member
 
Join Date: Apr 2008
Posts: 7
Trader Rating: (0)
Default Excel VBA - Saving workbooks and folders with MkDir and ChDir

Hi,

I want to save a workbook once a week/month after running a macro. A cell in the worksheet, e.g. G15 is YYYY and G16 is MM.

I want to save the file each month in a new folder and named YYYYMM, I can concatenate this (G15&G16) but how do I get the macro to recognise the cells?

I currently use MkDir "C:\File" do I need to bracket in activecell.select?

Thanks in advance!
simonlavender is offline   Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off