Results 1 to 12 of 12

Macro to remove/change some fields and save the file.

Threaded View

  1. #1
    Forum Contributor
    Join Date
    09-19-2014
    Location
    Michigan
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    145

    Question Macro to remove/change some fields and save the file.

    Hello all. I am new to this forum but you all have helped me do this so far but I can't find what I am looking for, so I going to try to explain the best I can.

    I am trying to simplify when I write a work order for where I work. I have ready created a SAVE AS button to save the file as a specific name and in a specific folder.
    But now I want to know if there is a way to completely remove everything circled in red below, and do like a "paste special" and "values" for everything in blue. Because the person who prints the work orders does not like what I am doing to make my life easier. So basically I want her to not know anything about it.

    Untitled.jpg

    Hope someone can help me.

    And here is what I wrote for my SAVE AS BUTTON.

    Private Sub CommandButton1_Click()
    Dim path As String
    Dim FileName1 As String
    Dim FileName2 As String
    Dim FileName3 As String
    Dim FileName4 As String
    path = "C:\Users\SHORTNAME.DOMAIN\Documents\PROGRAM\"
    FileName1 = Range("E23")
    FileName2 = Range("E19")
    FileName3 = Range("E20")
    FileName4 = Range("E21")
    ActiveWorkbook.SaveAs Filename:=path & FileName1 & "_" & FileName2 & "-" & FileName3 & "-" & FileName4 & ".xlsm", FileFormat:=xlOpenXMLWorkbookMacroEnabled
    End Sub
    Last edited by OpOrange; 09-19-2014 at 03:34 PM. Reason: Solved

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro needed to open "File Save As" and change save file type
    By blainerhett in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2014, 02:40 PM
  2. Change Macro to save file in different folder
    By Marvelous in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2013, 02:49 PM
  3. Replies: 1
    Last Post: 09-05-2013, 02:39 PM
  4. Replies: 3
    Last Post: 02-04-2013, 12:18 PM
  5. Macro to remove the option to save as if file was open as read only?
    By extremecorvette in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-17-2011, 03:40 PM

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