Saving In Wrong Location

Sep 25, 2006

I have the following code which saves my worksheet with a name extracted from particular cells:

Public Sub SaveAsMaximoWO()
ThisFile = Range("AC5").Value
ThisFile2 = Range("E3").Value
saveName = ThisFile & " - " & ThisFile2
ActiveWorkbook.SaveAs Filename:=saveName

End Sub

This (for reasons I don't understand) saves the file to My Documents by default.

What I would like it to do is save to another folder within my documents as default.

View 14 Replies


ADVERTISEMENT

Excel Links To Wrong Network Location

Dec 14, 2012

I have a couple of functions in a excel addin file which is located on a network, i have been having this issue on a few spread sheets now and decided to test it on a completely new blank sheet.

The function i am using to test is called "extent" and it is called fine when loaded on one machine, loads fine on another machine, saved it. Load it up on another and the link is completely wrong. It is completely random between machines.

The link it loaded is an old one i have used before that is not in use, but it was not associated with this spreadsheet file in anyway. Is there anyway to force excel not to update these links automatically as the manual option is greyed out.

I can not fathom out why excel puts in this network location.

I have attached some screenshots, the correct network location is PODDrop BoxesPOD_AdminAddins

excel-link1.png
excel-link.JPG

View 1 Replies View Related

Macro Saving To Wrong Folder?

Jan 10, 2012

I have a macro that saves the workbook after it has finsihed the rest of its formatting. I am finding it is saving in the wrong folder. I looked at my code and it is clearly states 'my documents' where I want it to save. Yet it keeps saving on a random folder on a shared drive.

View 8 Replies View Related

Saving In More Than One Location

Jul 22, 2006

I would like to create a button on a toolbar to save my spreadsheet in 2 locations (always going to be the same, just the file name will change).

View 5 Replies View Related

Sheet Not Saving To Location

Feb 3, 2014

In the attached sheet in module5 I have a save macro with this code

HTML Code: 

ActiveWorkbook.SaveAs Filename:="D:Picking Logs" & _
Replace(sFile, "/", "-"), FileFormat:=52

-This saves it to my computers D drive and works fine.

Then I also have the following code whice is suppose to save it to the public drive which is U: drive, but this computer does not have direct access that that drive so i save it to

HTML Code: 

ActiveWorkbook.SaveAs Filename:="wcrsan1
owley public1 picking logs" & _
Replace(sFile, "/", "-"), FileFormat:=52

-The wcrsan1 is the path i use to save it to th U:drive.

My issue is the code runs fine, but it does not save it to wcrsan1 owley public1 picking logs. If i save it manually it works but not when the macro runs it.

VBA is password protected.. The password is Kayley98 the sheet password is go

ho.xlsm

View 2 Replies View Related

Saving Workbook In VBA And Location

Dec 20, 2008

I am using this code in my ThisWorkbook, but it keeps coming back as an error for

ActiveWorkbook.SaveAs Filename:=ThisFile

Private Sub Workbook_BeforeClose(Cancel As Boolean)
'Saves file as what is in cell "C7" to specified network location - variant below
Dim Location, ThisFile As String
Location = "\Office-pcpublicCustomers"
ThisFile = Range("C7") & Format(Now(), "dd/mm/yy")
ThisFile = Location + ThisFile
ActiveWorkbook.SaveAs Filename:=ThisFile
End Sub

View 9 Replies View Related

Vba Saving File To Certain Location

Apr 12, 2007

way to construct my save file so that it saves to the correct location.

I have a a FileSearch that lookings in a specific Folder and the sub folders for a file type and then saves them to a different location. Here is the location of the save in regards to the original location...

Filesearch folder= C:path
Savefolder=C:path he folder its found in & " excel converted"

If that makes any sense, basically I need to call the path of the file I opened, but not including the file name.

View 4 Replies View Related

Disable In-book Location Saving

Jan 6, 2010

I save a workbook, the location where I were last (ex cell Z42) is also saved and upon re-opening it again, it opens the sheet to the last location (Z42). So how could I make the workbook and all its worksheets to open at a defined location. ie. A1 for instance.

View 6 Replies View Related

Saving Excel Sheet On Network Location

Mar 21, 2014

I am currently having a slightly annoying issue that only happens 50% of the time, that when trying to re-save a excel sheet on a network location. The network location is a folder on another computer. The same happens when I try and save it as a pdf, but only happens half of the time.

The message which pops up says something along the line of 'Saving as: 'File-ServerDocumentsexcelsheetexample.xls' ' and a sort of green loading bar appears. It does this for about 15 seconds then goes off.

I've checked our anti virus (which is eset) and I've set it to not real time scan network locations.

I have attached a example of the saving message: ExcelWarningExample.jpg

View 2 Replies View Related

Newly Created File Not Saving At The Given Location

Jul 1, 2014

I have an issue with saving the file at the desired location below is the code i have currently used . I have given the destination as "D:New folder". The new file does get saved at location "D:" but not inside the "D:New folder", instead names the file as "New folder".

View 3 Replies View Related

Saving In A Second Location With Date/time Stamp

Aug 29, 2009

Is it possible to use a macro like the one below, and have the second location save with the date / time stamp in the name? This is what I need to accomplish: I have a few folks that need to make changes to a master spreadsheet daily. The spreadsheet is in a Network share that when modified and saved, will save to that network share, but also locally. Can the second location have the date/time stamp added to the name of the file so that I know when the changes were made and have an audit trail ? This will also keep a copy of the last modified file in case the spreadsheet is corrupted. Here is what I have for saving to 2 locations:

View 3 Replies View Related

Interpolation Given A Variable Table Location & Location Of Data Within

Oct 6, 2009

I am trying to develop a spreadsheet that will calculate a cost based on a matrix. I am attaching a sample of the calculation created so far. The end result is in cell M13 and is highlighted in yellow. I kind of layed the formula out in a few different cells, so hopefully it would be easy to follow.

simplify this process with maybe another formula that I might not be aware of, or maybe show me how to get this done in VB code. I think VB code would be the correct way to go just not sure.

View 6 Replies View Related

Saving A File Without Saving Macro

Jan 30, 2003

I have a spreadsheet that imports data, manipulates it then deletes 2 of the sheets then saves the file under a different name to the network. Is there any way to save this new worksheet without it storing the macros - so when the user open it, only the data is there and they get no prompt to enable macros?

View 6 Replies View Related

Saving User Inputted Data From A Worksheet To Another Worksheet And Saving It

Jan 7, 2009

I have created a form in a worksheet which I have added questions too and then locked all cells except the ones where I want the answers in.

I have then added a button to the bottom of the sheet called "Print and Save". This work sheet is called "form"

On a second sheet called "database", I have all the titles of the questions running from a -> k and nother else.

What I want to happen is the user input the information on "form" into the boxes available. Once they have completed the questions, I want them to be able to click on "Print and Save" so that firstly the page "form" prints, and then for all of the answers to be saved in "database" below the titles for each question.

I have had a play, but just don't know where to start. Also, once there is a row of questions below the titles, I don't want it to overwrite information already there, it needs to go onto the next empty row available.

Attached is my excel file.

You will see in the code that I have the code for printing.. I just found this on the net and it seems to work fine for me.

View 9 Replies View Related

VBA - What Is Wrong With My For Each Next

Feb 17, 2009

I am using a For Each Next to cycle through a list of names, check certain conditions and then will be adding a further lookup (instead of Result = Result+1), but all I get is #Value!

Function maxbarometer(Name As String, Round As Integer, NameList As Variant, RoundRange As Range, RoundRangeTwo As Range)
Dim Roundname As String
Dim Result As Double
Dim NameColRound As Integer
Dim ListObject As Variant

Roundname = "Round " & Round
NameColRound = Application.WorksheetFunction.Match(Name, RoundRange, 0)
For Each ListObject In NameList
If ListObject.Value = Name Then
Result = Result
ElseIf Application.WorksheetFunction.VLookup(ListObject.Value, RoundRange2, NameColRound, False) = Roundname Then
Result = Result + 1
End If
Next
maxbarometer = Result
End Function

View 9 Replies View Related

Getting Wrong FinalRow

Mar 19, 2007

when i try to get the final row witht the following:

KROGrow = Cells(65536, 1).End(xlUp).Row

i am getting a row that is consistently 27 rows off of when i manually do control up? i am pasting data from and existing workbook into a newly created workbook in the sub. i would assume that since the destination is new that they would never be any data in this?

View 9 Replies View Related

VLOOKUP Returning Wrong Value?

Jul 3, 2013

I am trying to use the Vlookup function to return State name based on the corresponding state code.

I have the list of State along with the Codes in adjacent sheet, arranged in ascending order. I am using the Vlookup function to list the State name based on the State code.

Vlookup function: Vlookup(A4,Sheet2.A2:B51,1)

This function returns me a wrong value. It gives "Arkansas" for the state code "AZ", when it should be Arkansas.

Also, if I add "FALSE" as a 4th argument, it returns "#N/A".

View 9 Replies View Related

IF Formula Evaluates To Wrong Value

Jan 29, 2014

I have the following formula: IF(SELL_INVESTMENT = "YES" , 1,2) It returns not 1 or 2 but 0. The worksheet contains over 1000 cells. Trace Precedents verifies that the formula evaluates the correct cell and that it contains "yes". I created a very simple worksheet to test the formula and here it correctly returns 1.

View 2 Replies View Related

Wrong Dates In Database

Apr 18, 2014

When copying data from a website to excel, excel recognizes the dates wrongly.

About half of the dates he sees as: DD/MM/YYYY, while it should be: nothing/MM/DD.

For example: The cell contains the date: 01/04/2029 (The first of April, 2029)

While it should actually be: 04/29 (The 29th of April, no year!)

For all dates it starts with the 1, followed by a month, followed by a year (which consists of the year 2000 + the actual day), which is totally wrong.

About the other half of the cells, it just contains text with the month and the day (which are correct), but excel doesn't recognize this as a day.

For example: The cell contains the text: June 12

When I set the cell format to date (or any other format for that matter), nothing happens, so excel does not see this as a date.

View 1 Replies View Related

IRR Function Is Returning The Wrong Value

Nov 7, 2008

I'm trying to figure out an Internal Rate of Return for a spreadsheet. The answer is supposed to be: 29.42% however I'm getting 25.94%. Does anyone know what I'm doing wrong in my IRR function on the Profitability worksheet? I'm currently using Excel 2007 by the way.

View 4 Replies View Related

References Goes Wrong After Sorting

Feb 18, 2010

I have a problem with my references when sorting in excel. I have been searching for the problem, but did not found a useful solution.
I'm using excel 2003.

Let me try to explain my problem with a simple exampel.

I have a column with numbers and one with formulas pointing at these.
A B
2 =A1
4 =A2
3 =A3

Now I want to sort column A, and the column B should keep pointing at the original number. So I want this:
A B
2 =A1
3 =A3
4 =A2

But I get this:
A B
2 =A1
3 =A2
4 =A3

This output is what I would expect if I used absolut reference($).

Using offset(B1;0;-1) will work, but I cannot use this, since I will add/delete rows and the reference is not neccessarily next to it. Plus it can be a rather large sheet.

I cannot use dynamically name definition either, because it is intended for other users, and this will be too much work for them. What I basically need is a simple formula they can enter.

My sorting is done via a VBA macro, so if there is anything I can do through macro/VBA that will be okay as well, since I can do this without the user seeing it.

View 14 Replies View Related

Copying To Wrong Column?

Oct 22, 2013

I have modified this micro I found in a forum. All I changed was the Range on Sheet 1.

[Code].....

It works fine except when it cuts to sheet 2 it starts at on column B I need it to start with Column C. What do I need to add ?

Attached File : Survey.xlsm‎

View 7 Replies View Related

Decimal In Wrong Place

Mar 13, 2009

how to control this,it should be 0.55. is they a wat too round off too next highest hole number? Here is a example.

View 2 Replies View Related

Click On Wrong Button

Apr 18, 2009

I have this workbook with 10 sheets. Each sheet has macros that are called from a floating toolbar. What I am trying to do:

I want to create a msgbox that warns me when I click in a toolbar's button to call a macro that not runs in the activesheet. Something like: "This code (or macro) doesn't match (or run) with the active sheet.

View 3 Replies View Related

Wrong Week Number

May 4, 2006

as such Excel (2003) is putting in the wrong weeknumbers in my spreadsheet, for example 02/01/2006 is listed as week 0 when in fact it is week 1, how can I get it too correct this problem?

I am using the following formula, could someone explain this formula in
english?

=CONCATENATE(YEAR(BM2),"_","w",IF((WEEKNUM(BM2)-1)<10,CONCATENATE("0",(WEEKNUM(BM2)-1)),(WEEKNUM(BM2)-1)))

View 14 Replies View Related

Time Replying Wrong

Sep 16, 2007

Thers no easy way to explain this other than looking at the sheet (which is attached), but basically i have a load time start time and end time.
In the example in the sheet the load time is 01:00
The start time is 23:00
The end time is 23:35

Th eload took 35 mins and was not late as it is going 01:00 next morning, yet the answer it replies is 'N' which makes it show as late.
Does anyone have a formula to slove this issue

View 10 Replies View Related

VBA Adding Wrong Dates

Dec 22, 2011

The code is supposed to project review dates 1 month, 2 months and 3 months after the start date, but the first "cell offset" line on is projecting the next day instead of next month, its driving me nuts!!, the others are working fine

Code:
Sub reviews()
Dim cell As Range

For Each cell In Range("L1:L200")
If IsDate(cell) Then
cell.Offset(, 10).Value = DateAdd("m", 1, cell.Value)
cell.Offset(, 11).Value = DateAdd("m", 2, cell.Value)
cell.Offset(, 12).Value = DateAdd("m", 3, cell.Value)
cell.Resize(, 10).AutoFill cell.Resize(, 11)
End If
Next cell
End Sub

View 3 Replies View Related

Mod Function Works Wrong

Dec 28, 2006

I was trying to explain modulus to someone and they wanted to know why you can "flip" symbols mod(-6,7) = 1 in Excel. So I got to explaining that -6 Mod 7 is the same as -6-(|-6/7|)*7 which is how you get 1.

And that's when I realized... |-6/7| = 0 not -1. Then I looked in VBA and sure enough -6 mod 7 = -6. Apparently the problem boils down to the Integer conversion. Excel is performing the integer coversion by rounding down (INT) wheras VBA appears to be using CINT.

So here is how it work out in excel:
-6-(|-6/7|)*7
-6-(|-0.857142857|)*7
-6-(-1)*7
-6--7
-6+7=1

But in VBA you get
-6-(|-6/7|)*7
-6-(|-0.857142857|)*7
-6-(0)*7
-6-0=-6

View 9 Replies View Related

LOOKUP Returns Wrong Or Odd Value

Mar 27, 2007

I have a very basic spreadsheet to calculate golfer handicaps based upon a course index. For some reason, my "LOOKUP" formula is not retrieving the data from the cell (column) next to the value I am searching...?

View 9 Replies View Related

Date Is The Wrong Century

Jul 29, 2009

I'm trying to parse a text file into Excel and the date is coming out as "1940" instead of "2040". In the text file the date reads "5/14/40". I've already changed my regional setting in Excel so that if I type in "5/14/40" it is understood to be "5/14/2040". For some reason this doesn't work when I parse the data though.

View 9 Replies View Related







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