saveas

  1. R

    Macro for saveas pdf for specific area in sheet of a workbook

    Sir, Good evening am trying to write a macro for saveas a portion of excel worksheet in pdf format, but am unable to do the same since sintax errors coming, can any one can help me in this regard one more thing is the file created should be name as content in cell "A1" of "sheet1" Thanks
  2. L

    Button OnAction Macro Assignment "drive" letter getting reassigned

    Hello, I can't find any topics on this issue. I create a button using vba and assign a macro using onaction. .OnAction = "'c:\data\macro.xla'!copy" The macro continues and saves the file to c:\data\temp\ Everything works fine with the button at this point. I can also saveas to a different...
  3. L

    SAveAS Dialog Box with VBA

    Hi! I am using the following code to show a SaveAs Dialog Box but I require a specific folder path to be set which will be a default whenever the user saves the file. How do I do this with the code below? Dim Ret strFileName = ProjID & "_" & TCG & "_" & Competitor '<~~ You can set Default...
  4. G

    VBA to sve a file new f

    I am after a little help please, need to build a macro to save a file to a new folder. So the bas path is already there say C:\files and I have a way to save the file into the same name as cell b7 but what I want is to create a folder for it of the same name so the b7 would be the folder \b7...
  5. L

    SAveAS Dialog Box

    The SaveAs Dialog Box works for me but it is the second part of the code which does not let me save the excel sheet as the filename I have set for it. It saves it as Book 18 etc. How do I get it to save with the filename I have specified? Dim Ret strFileName = ProjID & "_" & TCG '<~~ You...
  6. M

    xlsm file with vba code to save copy as xlsx on close

    I have an xlsm file that I cannot open on excel online. So I am trying to create a code that every time I close the xlsm file it saves the information to a xlsx file that I can access on excel online. I have the following code: Sub SaveAs() Dim FName As String Dim FPath...
  7. J

    Macro entry to choose "yes"

    I used the Record Macro feature in Excel 2013 to create a macro to do a Save as of a workbook to another file. However, the macro stops at the point where I'm prompted to replace the existing file, where I would click "yes." I copied the code below, and perhaps someone can tell me how to make...
  8. J

    Trouble saving document as variable in Excel VBA

    Hi, I'm trying to save a sheet based on a VBA variable name and am getting the error Method 'SaveAs' of object'_Workbook' failed. Below is a snippet of the code I'm using. Everything in the code works until the SaveAs portion. fldrPath = "C:\Project\" strPath = fldrPath &...
  9. I

    SaveAs Error

    Hi, I wonder whether someone could help me please. Using a script I found online as a 'base' I've written the query below. Sub Test() Dim wb As Workbook Dim ThisSheet As Worksheet Dim NumOfColumns As Integer Dim RangeToCopy As Range Dim RangeOfHeader As Range 'data (range)...
  10. E

    Save Multiple Cell Contents as Indiviudal Text Files

    Hello - I have a spreadsheet that contains 2400 rows and 2 columns. Column A has client notes that need to be saved as a text file (all 2400 rows need to be saved individually as a txt file), and Column B contains the name of the text file I would like. I worked on creating a macro for this...
  11. S

    memory leak open/save/close

    Pretty simple code. I have daily files (dy and mo) for multiple years (yr) for different areas (ucode) that are in .txt format. I want them in excel so that I can use them later for other vba macros. So there are four "For" loops, then I declare the file name and the path name. When the...
  12. L

    SaveAs method not working while saving workbook

    https://drive.google.com/file/d/0B9uhATNT4QB2QkEwSEtrVjFpeHM/view?usp=sharing Sub SaveIt() Dim Fnc As String Dim Coe As String Dim Dt As String Dim Path As String Fnc = ThisWorkbook.Worksheets("COELeadInputs").Range("E4").Value Coe =...
  13. V

    VBA Save as help

    Hi everyone, I need some help to achieve a task, I’ve tried getting code and adapting it but unfortunately couldn’t. What I want to do is the following: 1 Check to see if file name already exists in a specific folder. 2 Filename is not the “Activewirkbook” but instead something like...
  14. R

    "Saveas"... If file already exists, add a version number to the new one

    Hello guys, Is there anybody out there who could help me to adjust the below a little bit? I have multiple sheets on my workbook and my macro renames sheet 1 based on the values of some cells. Then the file to be saved in the folder will have the same name as sheet 1 The name will not always...
  15. R

    A file named....already exists in this location. Do you want to replace it? Yes, No, Cancel"

    Hello there. Here I am again hoping to get some help with something you may consider a piece of cake :) The code below opens a windows with the suggested file name and format. If there is no file with the same name in the folder and the user clicks on "Save", then everything works great. If...
  16. B

    Save, Save As vba help

    I give up. I have spent so much time searching this forum, YouTube and the internet on how to do something that I know is simple but I just am having a lot of problems finding something easy to use. I have a user form with three buttons on it. One is a save, one is a save as and one is a print...
  17. T

    Macro Used on Networked PC's

    I created a Macros for a spreasheet that works wonderfully up until it saves. It works just fine on my PC but when someone trys to run it on another Networked PC it bug's out at the place in red below: Dim dtDate As Date dtDate = Date Dim strFile As String strFile...
  18. C

    Excel workbook tries to save as every time I copy a line of cells down a row

    I had a workbook which became monstrously large for no reason (100mb). I copied and paste special values the tabs into a new workbook which reduced the size to ~120kb. However now, when I copy a row into the row below, it brings up the save as prompt every time. Why is this happening?
  19. G

    VBA Save File To New Folder

    Hi Everyone, I'm working on a project where I need to open a spreadsheet with a macro, run a macro in the spreadsheet and save the spreadsheet to a new folder with a slightly modified name. My string of code in VBA reads: ActiveWorkbook.SaveAs Filename:=Location & Left(myFile, Len(myFile) -...
  20. Caleeco

    How to Stop People Overwriting Excel Spreadsheets

    Hello, Question is in bold below! I've recently been pulled into a new team at work. There is a spreadsheet we all use and populate/update with various bits of data many times a day. One of my biggest frustrations (already!) is people overwriting changes I make to the spreadsheet because...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top