Wrox Programmer Forums
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 1st, 2004, 08:49 AM
Registered User
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Saving


Can anyone help me, i would like to write a macro that will save the worksheet under a file name which appears in two cells on the worksheet for example cell a12=1234J and cell a13=1 and the file name would be 1234J1

Many Thanks
Old March 1st, 2004, 04:02 PM
Friend of Wrox
Join Date: Oct 2003
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts

Hi David,
You can generate the file name like this:

ActiveWorkbook.SaveAs Filename:=Range("A12") & Range("A13") & ".xls"


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving forms rgerald Access 3 April 5th, 2006 11:55 AM
Saving images Sudoku Visual Basic 2005 Basics 0 March 24th, 2006 11:44 AM
EXCEL question saving a file saving the the first macupryk VS.NET 2002/2003 0 January 6th, 2005 05:33 PM
How To avoid the SAving of toolbars while saving Hari_Word Excel VBA 6 July 26th, 2004 12:13 AM
Saving Date value stephanel SQL Language 5 August 22nd, 2003 10:11 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.