Excel 2007 :: Saving File With Name Based On Cell Contents With Custom Formatting

Aug 16, 2012

I have a worksheet that has a number in cell K5 - the number is generated on "file open" code and is custom formatted as "TN"0000. Thus 1 appears as TN0001, 2 as TN0002 and so on. I am trying to save a copy of the workbook based on the this cells contents i.e. TN0001.xls, TN0002.xls etc. but the files are saved as 1.xls or 2.xls. The code I am using is

ActiveWorkbook.SaveAs Filename:="C:DataExcelFORMSDelivery Note" & Range("K5") & ".xls", _
FileFormat:=xlNormal, ReadOnlyRecommended:=True, CreateBackup:=False

I know I must make reference to format within the above....but how? if try something like

" & Format(Range("K5").Value, ("TN""0000")) & ".xls"

I get TN00000.xls

View 2 Replies


ADVERTISEMENT

Excel 2007 :: Not Saving Formatting Changes

Oct 13, 2008

I have someone in the company that I work for that is using Excel 2007 in compatibility mode, that is trying to make changes to an Excel 2003 file.

The file in question is a large one. She can type in the rows and columns and anything that she types will save. However if she trys to make any changes to the file in terms on calculations or highlighting specific columns, then these changes are not saved.

I have found out though that if she saves this 2003 file in the 2007 format, then all over her changes will save. She can't save it in the 2007 format due to some people still on 2003 that edit this file as well.

View 10 Replies View Related

Saving Cell Contents To XML File Saved As Current Workbook File Name

Dec 12, 2012

I have numerous spreadsheets that I need to open and unhide a sheet, that has XML data stored in cell A1. What I need to do is copy that data in cell A1 and paste it into a text document and save that as an XML file saved as the XLS workbook name with a date stamp.

I'm running into many issues, the main issue is the saving as current file name, and the formatting of the text/XML file.

Here is my current code, which doesn't reference the current file name and is just very generic. Once I get the saving as file-name correct and the formatting of the xml file correct, I will work on it a bit more.

Code:
Sub Test()
Dim Rng As Range
Dim wb As Workbook
Set Rng = Range("A1:A2")
Set wb = Workbooks.Add
With wb
Rng.Copy

[code]....

View 4 Replies View Related

Excel 2007 :: Custom Icon Sets For Conditional Formatting?

Mar 26, 2010

Any way to import and use icon sets for conditional formatting other than the ones provided in excel 2007? I would like to have some circles and shapes in colors other than just yellow, green, red, and gray.

View 5 Replies View Related

Excel 2007 :: Saving Worksheet As New XLS File Without Compatibility Checker

Apr 24, 2013

We are using Excel 2007.

I have a macro enabled spreadsheet and I need to save one sheet into a new file that is in xls format. I can do that --- is there anyway to suppress the Compatibility Checker box to make it that much easier?

The new file will not have macros as will just be a data in rows and columns so compatibility. Interesting is the compatibility checker box says there are links to the original spreadsheet, but I can't find them in the connections menu.

View 2 Replies View Related

Excel 2007 :: Copying Contents Of 1 Text File Into Another Using VBA

Jan 7, 2012

I am using Excel 2007, here's my question:

I just wrote two macros that each produce separate text files (call them 'A' and 'B'). I want to open 'B' with Excel VBA, copy all of its contents, and paste that content into 'A' right after a specific location in 'A' (where I have 10 consecutive asterisks, i.e., **********).

Most topics relating to Excel VBA and .txt files have to do with either importing / exporting into Excel (not what I want), or with associating .txt files to Excel (also not what I want).

View 7 Replies View Related

Excel 2007 :: Extract File Contents To Workbook

Mar 17, 2014

I have large number of sql files in various folders in my windows7 laptop.

I have extracted the file names with full path in column A in an excel work book.

For each row, I now need to parse the file and extract the file contents and put it in column B, for the respective row.

I want the entire query content to be populated in the row without parts of query to spillover to other column (based on comma etc in the query)

I am using excel 2007.

View 3 Replies View Related

Excel 2007 :: Conditional Formatting And Adding Text To Cell Based On Multiple Cells

May 31, 2013

I'm using Excel 2007. I would prefer to stay away from the scripting side of the house if possible. This is basically a 3 day forcast weather chart. The top is the actual weather data, the bottom portion is a color coded reflection of how the weather affects various things.

This product is created in excel, but will be embedded into a powerpoint. It will be updated daily. Here is what I would like. I want the color chart at the bottom to update automatically based on the data I enter above. I have a grasp that I can update the color through conditional formatting, although im not exactly sure what that will look like with all of those cells.

I also figured out that I can insert the letters in those lower cells with something similar to " =IF(C6>90, "T", "") " which would put in a 'T' for Temperature when the temperature got above a certain degree.

I run into a problem when I have multiple factors affecting a single cell. For instance on the example in day 2 of my image. Personnel are affected by Temperate AND UV Index. How would I set up that cell to pull that information from both of those cells and display it accordingly? I would prefer the letters to stay separated by the comma, but I could live without that. The default cell color will be green, with the potential to be yellow or red. I left a few examples of possible situations on day 2 and 3.

View 3 Replies View Related

Saving Custom Toolbar With File

Oct 7, 2008

The file who containd the toolbars informations is C:Documents and Settings<<USER>>Application DataMicrosoftExcelExcel.xlb

I copied this file to another computer and my custom toolbar appeared there.

In a file, I created a custom toolbar with submenus. It is possible to save this toolbar with file, so that I can use the file on other computers without the need to create each time this bar.

View 2 Replies View Related

Excel 2007 :: Saving Text In Given Cell To C Drive

Sep 13, 2012

My set up win xp pro office 2007. Object is to save the text from a given cell to drive C naming the file with the value in another cell. E.g.

Contents of cell ("AA5") is a string and the content of ("D5") is a number

I have tried altering the code posted which i found on the forum, it works fine for the purpose as it was indented e.g. save the workbook and in my case saves it as the value in cell D5.

I guess I need to use some form of object to pass to the save as method but my knowledge of this is somewhat limited in addition as the is a possibility of either the cell being empty and the file name existing on the C drive, I need to disable the windows warnings and just go ahead and save it over writing what is on the C drive is of no importance as it will be the same data anyway, I can wrap the save in a "if Len ( AA5)= 0" to stop it trying to save if the cell if empty it the save the text string i am having problems with:

Option Explicit
Sub SaveAsExample()
Dim FName As String
Dim FPath As String
FPath = "C:"
FName = Sheets("Sheet1").Range("A1").Text
ThisWorkbook.SaveAs Filename:=FPath & "" & FName
End Sub

View 8 Replies View Related

Excel 2007 :: Conditional Formatting Of Numbers Will Not Stay Cleared On Reopening File

Apr 27, 2013

Excel 2007 Conditional Formatting. I am trying to apply conditional formatting to a wide range of cells. I only want the rule to adjust the color and shading, under the FONT tab in the section below. Specifically, I do NOT want to adjust the number format (I have the user select the scaling and use VB to populate the number formatting). I accomplish this by removing the number formatting by going into the conditional formatting rule, clicking on format, and then on the first tab (Number) -- on the bottom right there is button to Clear.

This resolves the issue perfectly, and I can operate the report exactly as I would expect.

Unfortunately, when closing the report (after a save), and then re-opening, the conditional formatting number format is no longer cleared. Worse yet, because it no longer is cleared, the scaling VB doesn't work, unless I go back into conditional formatting rules, and go to the number tab, and click clear.

Screen shot of after re-opening, no changes:

Report looks terrible (not real data):

View 2 Replies View Related

Excel 2007 :: Conditional Formatting Based On Two Previous Values

Feb 19, 2013

I'm creating an excel document that tracks the amount of time someone has (in months) in the program. Certain residents are able to 'fast track' if they meet conditions, and I am trying to create this spreadsheet so that anyone who looks at it can tell who qualifies (and when).

The issue I'm having is with conditional formatting, because I don't know how to do it with mutliple conditions.

Column C is their previous time (months) in the program
Column D is their current time (months) in the program
Column E is their total time in the program (Sum C+D)

Coumn E is what I would like to format, based on the following rules set out in the program manual:

If previous time is 9 months or more, a resident is eligible to fast track after 6 months current time (format green).
If previous time is less than 6 months, a resident is eligible to fast track after 9 months current time (format green).

I understand that their is an odd gap - but these are the rules currently set out by the program manual, which is what I have to follow.

I'm using Excel 2007 - if that changes anything.

View 3 Replies View Related

Excel 2013 :: Saving Custom Filter Criteria

Jul 30, 2014

I am trying to save filter options to so I can apply the same filter to multiple spreadsheets. For example, I have several spreadsheets with 50 or more school names and I am trying to set a filter that will filter out the same 20 schools each time. Is there anyway to do this in excel 2013?

View 4 Replies View Related

2007 Crashes When Saving A Specific File

Jul 1, 2009

Hi all, I've reinstalled office 2007 because excel 2007 was crashing very often when inserting new rows or when saving the file. I tried with other files and apparently work fine. The specific file can be opened but I don't know if is corrupted, I tried repairing it with open and repair from the file open menu but didn't work (it is still happening the same). I've been working on the file during few days and wouldn't like to start from scrath again, can anyone help me with this?

View 8 Replies View Related

Excel 2007 :: Conditional Formatting Dates Based On Number Of Days That Have Passed?

Nov 22, 2011

I am trying to figure-out how to set up conditional formatting of dates in a column (e.g. Date Submitted) and have these dates, and/or cell, change color as time progresses. I have Excel 2007.

For instance I have an application submitted on 11/20/2011 in a cell. I would like to have the date change color (Yellow) after 30 days have passed.

Then do the same except change to Red after 60 days have passed the date.

I searched the forums and did not find this particular problem. I of course may have missed it too...

My guess was to try "$A$1

View 4 Replies View Related

Google Image Search From Cell Contents Of Excel File?

Apr 5, 2014

i have an excel file with hundreds of rows of product codes which i need to download images for. is there a way this can be done directly from excel? basically if cell A1 has product name and Cell B1 have product code, id like Cell C1 to generate a link that will use the contents of B1 as the basis of my google image search. can this be created using a macro?

View 9 Replies View Related

Excel 2010 :: Copy Cell Contents From A Permission Protected File

Apr 17, 2013

S/W Environment: Excel 2010

Some of my worksheets are permission protected. They will allow me only to view the sheets - No editing, copy, cut, sort, add filter, etc. Is there a way to hack this and copy data (including formating) into other / new worksheets?

View 1 Replies View Related

Excel 2007 :: Saving As Text Tab Delimited

Apr 18, 2013

Excel 2007 on windows 7 professional.

We've got an end user who opens a .dat file which is delimited with semi-colons, replaces some text in a couple of columns then saves as a text tab delimited file. She swears that before today, the saved file would retain the semi-colons. Now she says it's not. she generated a new .dat file for me and recreated the process, with the resultant semicolon-free file. I asked her to generate another one and send it to me. I opened it first in notepad, and saw the semi-colons.

Opened it in excel (I'm using 2010 on win 7 professional), which saw it as a delimited file and asked me to specify the delimiter. It shows up fine, all the columns are righteous. I made no edits and saved as a text tab delimited, and that saved file had no semi-colons in it when I opened it. This seems normal to me; there's no semi-colons in the excel file, so why would there be in the text tab delimited file. I asked her coworker to generate another .dat from his pc and let me know what he sees, but he hasn't reported back yet.

View 5 Replies View Related

Excel 2007 :: Add Suffix (1) To Filename When Saving?

Aug 29, 2012

I find, when performing a 'save as', xl puts in a default filename with a suffix (1), or (2), or (3) and so on, to the existing filename, after I have opened a file from MS Outlook. I had assumed it was because there was already an existing file in the default directory, and so it was creating another version, but no other files with the same name exist in the default directory being saved to, or on the remainder of my computer, so I don't understand why this occurs.

View 2 Replies View Related

Excel 2007 :: How To Stop Conditional Formatting From Copying To Adjacent Cell

Jun 6, 2012

Excel 2007.

I have conditional formatting set up so that the cell becomes highlighted if it contains a specific text.

Example of wanted conditional formatting:

Conditional formatting rules manager
Rule

Format

Applies to

Stop if true

[Code] ......

For some reason this formatting is inherited by another adjacent cell as we continue to input information.

For example:

Column M is formatted so if 'AP' is placed in any cell in that column the cell fills pink. As more information is inputted into the sheet, the conditional formatting copies to Column N. It does not happen with every entry and I have not been able to isolate the specific steps to recreate the copying. Multiple people use the same sheet and fill it out and needed.

After working with the sheet changes are made to the "applies to" column without people meaning to.

For example:

Conditional formatting rules manager
Rule

Format

Applies to

[Code] .......

I would like to make this formatting so that is only applies to the Column M and not "travel" to other cells of the sheet.

View 2 Replies View Related

Excel 2007 :: Pull Data Into A Cell From Another Worksheet That Has Conditional Formatting?

Jul 20, 2012

I have a Workbook (Test 1) with several columns A-S. I'd like to be able to continue to add data into Test 1, and have some of the data pulled into a new Workbook (Test 2). Basically pulling data from Test 1, cols. D, L, J, E, I, C, K, Q and S - into the new workbook Test 2.

Some of the columns in Test 1 have conditional formatting and data validations, but I need the data in these columns to be replicated into Test 2 - without having to copy/paste between the 2 workbooks.

I figured how to do this in Excel 2010, but my office is still using 2007 and I can't seem to get it to work....

View 1 Replies View Related

Excel 2007 :: Saving And Loading Single Sheet?

Dec 21, 2011

My set up office 2007 win xp pro ie8

is it possible using vba ideally with a button marked save, to save a single worksheet and name it, in CSV format

Then I would like to be able to do the reverse load a CSV file back in to a work sheet

Expanding upon this

1. Click a command button with caption “save”

2. Take the name of a given sheet, in my case DataToUpLoad and append it with a number to give a sheet name of DataToUpLoad 1 the first time it is save and DataToUpLoad 2 the next time and so on

3. Click another command button with the caption “load” interact with usual dialog box.

My current work around is to copy a sheet open a new work book past the sheet in the save that work book as CSV

The reason this is required is to mate up with the php on the server side

View 3 Replies View Related

Lock / Unlock Excel Cell Based On Contents Of Another Cell?

Sep 12, 2013

How to Lock/Unlock an Excel Cell Based on the Contents of Another Cell?

View 1 Replies View Related

Excel 2010 :: Copy Contents Of Column Based On Value In Another Cell

Jul 30, 2013

I'm using excel 2010 and windows XP with a moderate amount of experience tinkering with macro programming. I know what I need is very doable but I can't get my head around what the code would look like. I must not be wording my searches correctly because most of what I'm getting for results are iterative programs based on a cells value which isn't what I need.

I'm trying to build a macro that will check a cell (C3) and based on the contents of that cell copy a column (I) to one of 12 different columns (K:V). So if the value in C3 is 1 it should copy I to K, if the value is 2 it should copy I to L, and so on.

View 2 Replies View Related

Macro Rename Excel Files Based On Cell Contents?

Jun 23, 2014

Can a macro rename Excel files based on a cell's contents? The problem maybe that I download these files en masse from a website and they all have 54-character long randomly generated filenames which I can rename by selecting all and then use the rename function to get a series of filenames like a, a(2), a(3), ... but I would rather have the files renamed based on the text that exists in cell B1 which is the title of the report. I also read somewhere that this kind of macro only works if the tabs have names like "Sheet 1"

View 1 Replies View Related

Excel 2007 :: Conditional Formatting Empty Cells Based On Full Cells?

Nov 17, 2011

Working in Excel 2007. I am using excel for a data log (basically) and want it to format all empty cells in a row yellow if there is data in column A

Basically, If i have a value in A2, I want any empty cell between B2-G2 to be filled in yellow (as an idicator to the inputter that the cell needs to be completed).

there is already conditional formatting on these cells, which i want to maintain for the non-empty cells. I also have "0" as a value, so I couldn't use the basic conditional formatting setting it =0, it highlighted cells with $0.00, which i do not want.

View 5 Replies View Related

Excel 2007 :: How To Reformat From Custom Format

Jul 24, 2014

I am using someone else's old spreadsheet.

This spreadsheet uses a custom format of ##-##-## for a date such as 012214 prints as 1-22-14.

I need to convert this into normal short date format such as 3/24/2014 because there are four columns of dates in the spreadsheet and we have to do some addition and subtraction from one column to another.

I am using Excel 2007.

View 4 Replies View Related

Excel 2007 :: Custom View - Some Settings Could Not Be Applied

Nov 14, 2012

I have a large spreadsheet from which I need to create separate Reports by hiding various rows and columns. I have followed instructions for creating a couple of Custom Views (View tab, Custom Views, Add, Inserted Name, OK, Saved the document) but nothing happens apart from getting the message "Some view settings could not be applied". In fact none of the view settings were applied.

View 1 Replies View Related

Excel 2007 :: Insert Built In Item On Custom Tab?

Jul 22, 2013

Using excel 2007 I've created a new tab and wanted to place the 2003 file menu on it. I don't know how to include it automatically in the tab using a combination of XML and VBA. So I created a button with the callback to run some code. Unfortunately, it still places the item in the Add-in tab. How can I get the undernoted code to operate within my new tab with either XLM or VBA?

Code:
Sub InsertFileMenu2003()
Dim cb As CommandBar
Set cb = Application.CommandBars.Add("xl2003 Menu", , True)
CommandBars("Built-in Menus").Controls("&File").Copy cb
Application.CommandBars("xl2003 Menu").Visible = True
End Sub

View 6 Replies View Related

Excel 2007 :: Custom Sort Column With Macro Button

Jun 20, 2013

I already have a Macro button built that hides values in column A. The next step I am trying to perform is a custom sort on column B in this order "Backordered", "Sourced", Shipped", and "Received". Here is my code that I have so far but where to begin adding in code to make this button sort.

Sub Inbound()
ActiveSheet.Cells.EntireColumn.Hidden = False
ActiveSheet.Cells.EntireRow.Hidden = False
Application.ScreenUpdating = False

[Code] ........

Excel 2007/Windows 7

View 1 Replies View Related







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