SaveAs Box Come Up With A Marco

Apr 9, 2009

Is there a way too get the SaveAs box come up with a marco? When you go too file and save, a box comes up and lets you choose where and what you save. I would like too have it come up with a command button if its possible.

View 3 Replies


ADVERTISEMENT

Marco Vs Functions

Nov 23, 2009

Currently, all of our data in Excel are linked by using Excel Functions between workbooks and some of the files are so large that it may take 10 minutes to open and copy and paste a cell may take three minutes (which is ridiculous slow).

Pardon my ignorance, my understand of Excel VBA/Marco is about automation. Even i use marco to run the excel, i still need formula in the cell in order to perform the task, right?

View 5 Replies View Related

Run Marco Without Password

May 5, 2009

when i run this marco, i get a Password msgs box appear, now is there away of running it so that it does not ask for a password, I have tried to unprotect the sheet with a password which works, but it never re-protected it self,

I don't know that much about VBA and my programming knowledge is very limited. I dont want the code re-written, as its someone elses work and it does what i want, i just need to know if an extra line can be entered to stop the password msg box. I.E. it needs to run without asking for the password

View 4 Replies View Related

Drop Down Menus And Marco?

Jan 12, 2009

I am trying to program a drop down box at the top of a column so that when one of several options in the drop down are selected, a corresponding price list is displayed in the column below.

View 4 Replies View Related

Changing Links With A Marco

Feb 23, 2007

I would like to use a macro to change links, but i would like to chose a different file each time I run the macro.

View 9 Replies View Related

Delete Rows By Marco

Nov 7, 2008

I have a cell wich contains "1234". Now I want to look if the value of an other cell 1, 2, 3 or 4 is. Isn't it then should that row be removed.

1234 could also be 124 or 1 or 4 or 6 or ....

View 9 Replies View Related

Marco To Stay In Selected Cell

Apr 1, 2014

I am running the below macro which work fine ! However after running the macro, I do not stay in the cell I was!! How to stay in the selected cell?

HTML Code: 

Sub INSERT()
ActiveSheet.Unprotect Password:="P@ssw0r!"
ActiveCell.EntireRow.INSERT

Range("FORMULA1,FORMULA2,FORMULA3,FORMULA4").Select
Selection.Locked = True
Selection.FormulaHidden = False

ActiveSheet.Protect Password:="P@ssw0r!", AllowFormattingCells:=True
End Sub

View 1 Replies View Related

Using Marco - Moving A Line Of Data?

Jun 3, 2014

I have a line of data (say from B6 - S6) in cell S6, when i put in the word 'complete' i want the whole line of data to move to say line 34 - clearing line B6

View 5 Replies View Related

Marco To Sort Cells In Column

Jan 27, 2014

I am trying to add a macro that will sort everything by what is in column A (not the first row though) and then have it expand the selection to the entire row and sort it. so basicly it would do the same as me clicking sort and filter and then selecting sort largest to smallest and then selecting yes to expand the selection. I have found some that sort only column A but nothing that changes it all.

View 2 Replies View Related

Marco To Generate Pivot Table

Jun 26, 2007

I am trying to create a pivot table macro to append to the end of an existing macro I already created which formats the data prior to the pivot table.

Here's the Pivot table setup info if if I was setting up the pivot table manually:

1) Column C (column header row = "D C/D") to be PAGE
2) Column G (column header row = "MN") to be ROW
3) Column A, B and D (column header rows = "TT", "NT", and "CC") to be COLUMN

Sum of Column E (header GA (DA)) and Sum of Column F (header TFA) in DATA ...

View 9 Replies View Related

Auto Find/Replace And Marco Sort

Apr 29, 2008

I'm looking for is something that searches all worksheets in the work book for occurances of A1 (shovel) and replace it with A2 (spades). The list will be about 100 cells long and the idea would be that I could copy a sheet called "replace" with this list in, run it and standardise all the terms in the list within that workbook. Does it sound feasable?

The other query I'm not sure can be done. When I've tidied all these 'names' to a standard one, I want to sort the data (sometimes rows, sometimes columns) alphabeticalled for instance by the A1 to A10, or by A1 to Z1. Simply using the sort option loses all the references as is doesnt change any cells linked to that cell. The only way I could think to make keep the other cells pointing to where they should is to cut and paste/each row/column in alphabetical order manually.

View 14 Replies View Related

File Format Equals Marco-Enabled Workbook

Feb 5, 2009

I want to save the Excel file as "Excel Macro-Enabled Workbook." Currently, File Format:=xlNormal within the VBA code and the results saves the Excel file as .xls. How do I write the File Format to save the Excel file as "Excel Macro-Enabled Workbook."

Below is an example:

ActiveWorkbook.SaveAs Filename:=Left$(ActiveWorkbook.Name, (Len(ActiveWorkbook.Name) - 4)), FileFormat:=xlNormal, CreateBackup:=False

View 2 Replies View Related

Marco To Show Picture When Cursor Point To Item

Oct 18, 2009

I need help on how to do this.
I have a list of parts in cell A1 to A10 in sheet1. And I have all the parts photo in sheet2. What I want is, when I move my cursor to the name of the part in sheet1, say is .. A1, then the A1 photo from Sheet2 will show up at a defined cell so that I know how the parts look like.

View 9 Replies View Related

SaveAs..Worksheet

Dec 31, 2007


Sub CrearCSV()

Application.DisplayAlerts = False

ActiveWorkbook.Sheets("Prueba").Activate
ActiveSheet.SaveAs Filename:= _
ThisWorkbook.Path & "Prueba.csv", _
FileFormat:=xlCSVWindows, CreateBackup:=False
Set CSVfile = ActiveWorkbook
CSVfile.Close savechanges:=1
End Sub

Sheet "Prueba" is Hidden
Other Sheet is visible

Why SaveAs stores only the visible Sheet?
How does stored hidden Sheets with WorkSheet.SaveAs?

View 9 Replies View Related

SaveAs From Template

Apr 29, 2009

I'm running a macro in a template and trying to save the results to a different folder.
I want the file name to be blank in the Saveas Text box of the UI also. Unfortunatley my code is bugging out & I can't work out why.

ActiveWorkbook.SaveAs Filename:="C:", FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False

The save to path does change so I want to be able to change the save location.

View 9 Replies View Related

SaveAs Code

Jan 14, 2010

It is supposed to bring up an input box, the date entered in input box becomes the date of file. The file is then Saved As. This all seems to work but when I try to open the newly saved file the sheet does not open. Is this a file type issue? Should it be .xls?

Code so Far

Dim InputDate As Variant
Dim FileType As String
Dim myFileName As String
Dim myFolder As String

FileType = ".xls"
myFileName = "Report"
myFolder = "Q:Sales FinanceAndyDUBLIN MACRO TEST"

View 9 Replies View Related

Dialogs SaveAs With Different Directory

Aug 6, 2005

An already existing file will be changed by my macro and at the end I want the user to save the file with a different name in a different directory with the option to change the filename or directory. Therefore I use the excel-standard-dialog "save as". But I want the dialog to start in another path as the path the original-file is stored in. But also I use the ChDrive and ChDir Parameters the dialog even starts in the original-file-path. I think this is standard for the dialog and I should maybe use a parameter in the show-arguement? The code is below.

Option Explicit
Sub SaveMyFile()
Dim xFileName, xAnswer
ChDrive "J"
ChDir "J:myfolder"
xFileName = "testme.xls"
xAnswer = Application.Dialogs(xlDialogSaveAs).Show(xFileName)
End Sub

View 5 Replies View Related

SaveAs To Same Directory But Different File Name

Feb 4, 2009

By Code I am trying to SaveAs the present Workbook : Only in the same directory as the present Workbook- but with a different file name. The new file name would be :"the Filename of the Active Workbook" + " ("D9") of the Sheet("ADMIN")". This macro will only be run from the Sheet("Admin").

View 4 Replies View Related

Changing SaveAs Dialog Box

Oct 31, 2009

I'm hoping someone can stop me going crazy with what should be something very simple. To make things easier at the end of my code, all I'd like to do is bring up the SaveAs dialog box and have it default to a specific directory so that the user doesn't have to click through the mountain of various files and folders we have.

View 6 Replies View Related

SaveAs Error Crashes

Dec 15, 2007

I have a very strange error at present. I am saving a sheet as a file using VBA from within Excel and when I run the program from the environment of my flash drive it works without a problem but when I run the same code on my main PC it causes an error :

Run time error 1004
Method SaveAs error ... and it causes Excel to crash and then recover the file.

The code that causes this is shown below : ....

View 6 Replies View Related

Cells Name Saveas Workbook

Feb 7, 2009

Hello Members, I been trying to save a workbook as the name that will be input into cell B2 and the folder from what is input into cell B6. Without any luck using different codes.

In cell B3 is typed an new name and cell B6 is a list of clients that can be choosen from a selection in a dropdown.

Example, If 250R was input into cell B3 and Honda was selected in cell B6. The new workbook would be placed into the Honda folder with the name 250R.xlsm

To Copy and Save a workbook upon closing the new workbook.

View 9 Replies View Related

Automatic Unprotect Using SaveAs

Sep 3, 2009

way for other staff to do the following...

Open an exiting protected spreadsheet,
SaveAs [newfilename]
Unprotect new sheet
Edit new sheet
Protect new sheet
Save it.

Hence we how have two protected sheets with different filenames and different contents.

Then, next time, the teacher will start again with the new spreadsheet file resulting in yet another version of the same data. etc etc.

View 9 Replies View Related

SaveAs - Inputbox Data

May 31, 2006

I want to use the SaveAs function using the Inputbox results. The user will input a date like 5-30-06. Then I want save the workbook as "WE5-30-06.xls". I can't figure out how to do this b/c it wants to use 5/30/06 which isn't allwoed in naming conventions. BTW the inputbox name is dWeekend.

View 2 Replies View Related

Add SaveAs To PDF Export And Email Code?

Feb 3, 2014

I have the following code working well. I'd like the pdf to be saved to the users local machine before it emails it. The user must be able to choose the path. How can I do this?

[Code].........

View 3 Replies View Related

Excel 2003 :: SaveAs VBA To Always Save In XLS

Mar 11, 2014

I am trying to edit the code below to save in .xls instead of .xlsm. Also, I need to disable the compatibly checker.

[Code]....

View 1 Replies View Related

Difference In SaveAs Between 2003 & 2007

Jan 9, 2010

I found that there is an issue with saving a workbook where there seems to be an issue between 2003 and 2007.
The code I used:

View 3 Replies View Related

VBA Use Filepath In A Range To Put Into SaveAs Statement

Nov 24, 2012

I am trying to use cell C6 in my control sheet

Which is this

C:UsersNeilWin7DBTradingETFfiles

And put as a string into SaveAs

wbNew.SaveAs Filename:=Worksheets("Control Sheet").Range("C6") & TickerIndex & "ProSharesNAVRatio" & ".txt", FileFormat:=xlTextWindows

View 3 Replies View Related

SaveAs With String Extraction For File Name

Jun 16, 2014

I am trying to use the string (sPath), I previously define to preform a saveas function after the script runs.

Code:
Sub CombineSheets()
Dim sPath As String
Dim sFname As String
Dim wBk As Workbook
Dim wSht As Variant

Application.EnableEvents = False
Application.ScreenUpdating = False

[Code] .......

These reports are always located in a subfolder defined as "D:DropboxWorkVerification Reportslocation name" where location name is the name that I want to use to save the workbook.

So as an example an excel workbook report generated in the folder:

"D:DropboxWorkVerification Reports!Test"

Would be saved as "!AirCheck AutoTest Report - !Test.xls"

or a report in the folder:

"D:DropboxWorkVerification ReportsHoliday Inn Surfside"

would be saved as: "!AirCheck AutoTest Report -Holiday Inn Surfside.xls"

Right now the code I guessed on isn't working and its generating an error on compile "Can't assign to read-only property".

View 7 Replies View Related

SaveAs VBscript File Path

May 10, 2008

I'm using a VBscript that will copy a worksheet and it works perfectly except that it saves the copy to the same directory as the original workbook. I need it to save to a different directory.

What I believe is the pertinent part of the code that needs adjusting is:

"Input box to name new file
NewName = InputBox("Please Specify the name of your new workbook", "New Copy")

' Save it with the NewName and in the same directory as original
ActiveWorkbook.SaveCopyAs ThisWorkbook.Path & "" & NewName & ".xls"
ActiveWorkbook.Close SaveChanges:=False "

How would this be changed to specify that "NewName.xls" be saved to: D:/newdirectory/copies

View 9 Replies View Related

SaveAs The Papulated Sheet From Data

Jun 7, 2009

I am running 2003, but I'm working on a WB from a colleague running 2007.

I have downloaded the converter from MS.

The document is a Template, which I open, load with data from a .csv file, then SaveAs.

My problem is, whenever I SaveAs, the resulting document is Read Only, and I don't want it to be.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved