Results 1 to 1 of 1

Macro for Save As a pre-determined range of cells, freezing drop down box and date

Threaded View

  1. #1
    Registered User
    Join Date
    10-31-2012
    Location
    UK
    MS-Off Ver
    Excel 2011
    Posts
    1

    Smile Macro for Save As a pre-determined range of cells, freezing drop down box and date

    Hi,

    I am starting out with VBA and have a rather specific problem.
    I have created a button that runs the following macro:

    Public Sub SaveAs()
    ThisFile = Range("B16").Value & " " & Range("A7").Value
    ActiveSheet.SaveAs Filename:=ThisFile
    End Sub


    I want to develop it further so that instead of saving the whole of the active sheet, it would save part of it (excluding the Macro Button, basically), whilst also freezing things like drop down boxes and =today(). So that when the new file could be opened without changing the date, etc.

    The purpose of this is to generate new files, whilst keeping the main one as a Template with drop down boxes, automatic date and macro button. And anything else I stick in there to make information entry simpler.

    Hope this is clear enough.
    Thank you in advance,

    Best,

    Ana
    Last edited by MonseigneurB; 10-31-2012 at 02:12 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1