Pasting Text Without Retaining The Formatting

Nov 20, 2009

I am in a situation where I have to copy-n-paste text from a webpage into Excel. When I do this, the pasted text keeps the formatting of the webpage. The font is the webpage font. The background color is the background color of the webpage. Etc.

I know that I can paste just the text itself, without any of the formatting, by right-clicking, selecting "Paste Special...", and then selecting "Text" instead of "HTML". I am wondering if there is an option somewhere that will do this automatically when I hit CTRL-V instead of requiring me to pull up the Paste Special dialog box.

View 9 Replies


ADVERTISEMENT

Retaining Both Cell Formats When Pasting On On Other

Nov 28, 2008

I have a template A that has lines on it, sometimes I want to overlay template B which has other lines on it, however when I past template B on top of A the formats of A are overridden by the formats of template B.

Is there any way of "overlaying" B on top of template A without losing the template A formats?

View 7 Replies View Related

Retaining The Formatting Of A Cell?

Apr 24, 2014

I am creating a worksheet that uses a series of if formulas to determine the correct cell to use in a table outside the printing/viewing area. Something along the lines of "if X, Y, and z happens then use what is in cell AY34". I have the formula working, so I can get it to go pick up what is in the cell I want.

The problem I am having is that there is a heading to the text in cell AY34 that is bold, but the rest of the text in the cell is not bold. Is there any way to drag the formatting along with the data and not just the values?

View 3 Replies View Related

Retaining Conditional Formatting On New Rows?

Jul 16, 2013

I have a spreadsheet for recording property maintenance. All properties are grouped by a city zone in a specific colour, and there is conditional formatting on this. Also drop down lists for properties, contractors etc.

This all worked well, until I needed to start inserting rows. All the conditional formatting and lists didn't replicate on the newly inserted rows.

Also, we need to assign a unique reference number to each row but currently manually inputting them - very inefficient way of doing this as they will inevitably get mixed up and confused as rows are removed.

Spreadsheet.jpg

View 9 Replies View Related

Retaining Formatting And Special Characters

Sep 9, 2007

I have created a multiple choice quiz maker that randomizes the questions and responses. This means that the quiz questions/responses must be copied and pasted each time a new quiz is generated. But in doing so, Excel loses formatting (such as super and sub scripting) and some special characters (like pi, alpha, the degree symbol).

Is there a way to get such things to copy properly from cell to cell, sheet to sheet, using Excel?

View 9 Replies View Related

Copy Table Retaining All Formatting And Cell Sizes

Aug 27, 2013

I have a workbook that has multiple tabs with data already entered. I have also built a series of tables/forumlas to display summaries of the data. My desire is to be able to copy this table with all formulas/formatting/cell sizes to the various existing tabs.

View 3 Replies View Related

Retaining Text Format When Using Formula?

Feb 12, 2014

I am using the VLOOKUP function in a cell, however, I would like the value returned to also retain the text format from the table (eg colour and bold). I have attached a simple example (to demonstrate the point) where cell B14 should have the word 'French' in bold red.Example.xlsx

View 3 Replies View Related

Split Comma Separated Text And Insert Into Next Row Retaining All Other Columns

Oct 26, 2013

Original table:
Column1
Column2
Column3
Column4

AAA
DDD
A1
X123, Y123, Z123

[Code] .......

View 1 Replies View Related

Copy And Pasting Without The Formatting.

Nov 18, 2008

I regularly copy into notepad then copy that into excel because I don't want to carry over the text formatting. Is there a better way to do this? To set up the cells so that they don't try to carry the formatting over?

View 4 Replies View Related

Preserve Formatting When Pasting Into A Cell

Feb 24, 2010

I am making template and trying to preserve formatting when users paste into a cell. From my research, I have found that this is impossible with simple format protection, it works to prevent changing formating, but if something is pasted (with normal paste), the format will change.

I have found a few solutions, but can't get them to work correctly

Solution A: Disable normal paste and substitute Paste Special - Values

How will this work with pasting via CTRL + V and the right click menu? I need both to function.

Solution B: Allow users to paste normally, but use a macro to copy formatting from a hidden sheet

I actually found code for this, but I couldn't figure out exactly how to impliment it. The sheet that users will be pasting into is called "Batch Summary" and I was trying to pull formatting from a sheet names "Batch Summary Format", but was getting an error.

View 9 Replies View Related

Preserve Formatting When Pasting Part Of A Cell

Jun 4, 2013

Is it possible to preserve original text formatting when copying and pasting only part of a cell. Like, for example, a cell may contain ten words one of which is in red and underlined. How do you copy that one word and paste it in another cell so that it remains in red and underlined?

View 4 Replies View Related

How To Copy Page Formatting When Pasting Into New Workbook

Dec 28, 2011

I've been trying to code a macro that will select a worksheet (that has formulas) to copy just the values into a new workbook. I want the page setup data to also be included. It seems that if a select the workbook and do a copy, it includes the formulas. If I select the cells, then do a paste/special values into the new workbook, the page setup is the default one. Each worksheet that I want to copy/paste has different page setup values and I'd like to be able to carry over the page setup. Otherwise, I have to have code to do all the page setup in the macro. There are over 20 worksheets and it's slow.

This code does the copy/paste special but no worksheet page setup is included

Worksheets("Data1").Range("A1:E22").Select
Selection.Copy
Workbooks.Add
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveWorkbook.SaveAs Filename:= _
"U:My DocumentsLearning VBA filesTestNewWorkbook.xls"
Windows("ProjectFilesChapter07 test.xls").Activate

View 3 Replies View Related

Pasting Data From One Sheet To Another With Formatting And Cell References

Feb 11, 2010

I have inherited a monstrous speadsheet on which all data appears on a single sheet rather than being broken up across several sheets in some logical fashion.

One portion of this monster is a set of quite a few form letters, each of which reference various cells elsewhere in the spreadsheet.

I want to move all of these letters, together, to another tabbed sheet as a first step in reorganizing the monster.

Simply copying and pasting the cells or columns doesn't work. It fails in different ways depending on which pasting options I employ.

A very simplified version of my problem appears on the 5 sheets of the attached file, with what I hope is just enough further detail about the difficulty.

By the way, I also tried using the "Insert Copied Cells" option when pasting but since this failed with the exact same results as one of the other options I didn't include the results in the example shreadsheet.

View 5 Replies View Related

Pasting Cell Values Matching Destination Formatting?

Mar 31, 2014

I have browsed for two days looking for material on effecting this. The technique quoted most is watch for undolist for paste & auto fill then undo the change and paste the value again with specific formatting needs. This technique can be implemented in a worksheet_change event handler. The problem that I am facing is that the user can copy and past while my VBA is running. Once it is caught inside my own application class object event handler all that undo stack is already cleared. Therefore I have nothing that tells me if the user has entered the value via a paste action. By the time the value is pasted, all that formatting would have been entered. For example, a value that is interpreted by another workbook as DATE will have my destination formatting changed to DATE as well even though it is designed to be TEXT at design time.

So far I have not been able to think of a scheme to deal with this.

My basic intention is to always ensure the destination cell formatting remains as TEXT. If something is already interpreted as DATE after the paste even if I can convert to TEXT the string will appear totally differently. I have to find a way to paste the whole thing as TEXT in order to keep the string the same. The problem is that there is no intrinsic PASTE event in VBA. Without a method to undo that paste I cannot catch this at all.

View 1 Replies View Related

Copying And Pasting Conditional Formatting With Changing Cell Values

Mar 19, 2013

How to copy and paste conditional formatting with our changing the cell values. My first row of data starts in row 4 and here is what I have in D4

If D4 is less than or equal to AA4, AW4, BS4, CO4 then it will highlight D4

Now I want to copy that format and paste it for all rows in column D. The problem I'm having though is when I paste the formula it doesn't change to match the row I'm on. For example, when I paste it in D5 this is what I get

If D5 is less than or equal to AA4, AW4, BS4, CO4 then it will highlight D5

How do I paste it so that it will update to show AA5, AW5, BS5, and CO5. I want to be able to do this for 500 rows.

View 6 Replies View Related

Copy Date Into Text Box Retaining Date Format

Dec 12, 2007

I've created a group of user forms used for recording jobs and displaying details of jobs and have come up against a problem I think you may be able to help me with.

When the user creates a new record, I've written some code to stamp txtdate text box with the current system date and this information is then copied onto a sheet called Data into a specific column.

This part works fine and as the column is formatted to handle dates it displays fine.

However, when I pull the data back in, it displays the date as the serial number date, not formatted as dd/mm/yy. I've tried every fix I can find to sort this but none of them seem to work.

The code I use to pull the data in is as follows:

ComboBox1.BoundColumn = 11
txtdate.Value = ComboBox1.Value

The idea is that the user selects a job number from combobox1 and then the appropriate column is pulled into each txt box on the form.

At the same time, I'm trying to do the same for the system time as well. Unsurprisingly I have a very similar problem here and use the same code as above. I've tried formatting both date and time txt boxes in the userform, the data transfer code etc etc with no success.

View 3 Replies View Related

Excel VBA - Copying And Pasting Text To New Row

May 19, 2014

I'm trying to write a macro that looks in cell A1:VGH1 for the text "Name:" within the row, then copy that cell and other following cells and paste into a new row. This macro can loop through the row until all instances of the text "Name:" and the following cells are on their own row.

What I have currently.

Name:xxx From:xxx Name:xxx To:xxx From:xxx Name:xxx: To:xxx

The result

Name:xxx From:xxxx
Name:xxx To:xxx From:xxxx
Name:xxx To:xxx

View 1 Replies View Related

Pasting Text To Bottom Of Data With VBA?

Sep 13, 2012

I use the code below to copy formulas to the bottom of the data in a spreadsheet so I know how to do this with a formula.

I have a need to do the same but with a text string that I define.

No conditions, just normally need to copy the text from the cell 2 of a column down to the last row where data is in any column (Usually being col A).

Code:
Dim Last_Row As Long
Application.ScreenUpdating = False
Last_Row = Range("A" & Rows.Count).End(xlUp).Row
Range("S2:S" & Last_Row).Formula = "=b9/a9"
Application.ScreenUpdating = True

View 3 Replies View Related

Pasting Multiple Lines Of Text Into One Cell?

Jul 24, 2014

I am trying to cut and paste from a PDF document into excel and a grab of text when pasted sits in three boxes instead of one. How can I manage this?

View 9 Replies View Related

Pasting List Of Text And Numbers From MS Word

Jan 17, 2010

I have a very large list of top scorers for a sports team MS Word. The name and number of goals are both on the same line. Is there any possible way I can past them into Excel, so as they are pasted into 2 separate columns?

View 2 Replies View Related

Pasting Entire Row To New Sheet If Cell Contains Certain Text?

Jun 29, 2014

I am looking at trying to develop a workbook for my job that would make things alot more efficient.

Firstly, I download data from a web based app into excel. I now want to take certain full rows and paste them into another sheet depending if they have certain text in a cell. So i want to search the entire coloumn for a value of "OR" and if this is present copy the entire row into a new sheet ?

View 14 Replies View Related

Retaining Formula Even If The Value Changes

Sep 23, 2008

Is there a way to retain a formula when you have a drop down options that generates a date stamp? The problem is, i have this worksheet that has a drop down option on column B and generates the Due Date on column A, once an option is selected on the drop down list. After selecting, the output becomes static, but then overwrites the formula of column A, thus i guess making it static. I've had great help from this board helping me with the formula and the vb code. Is it possible? Here's an example of the formula and the ...

View 9 Replies View Related

Retaining Highest Value

May 14, 2006

I am starting to use formulas and I am constantly amazed at the power of Excel. I am trying to write a spreadsheet and I'm having a problem getting Excel to do what I want; I have 2 column, each cell in Column 1 will have a numeric value changed daily. I want Column 2 to retain the highest value that has been added. i.e. If I type 4 in A1,(for example), on Monday, then B2 will read 4, if I type 5 in A1 the next day, then B2 will change to 5, but if I type a value less than 5 in A1, then I still want B2 to read 5. The value will be input daily for an indefinite period and needs to be user friendly. I can't work out how to achieve this.

View 5 Replies View Related

Formula Retaining Last Value Of Cell?

Sep 24, 2011

I am trying to use an "IF" statement to either apply a formula or retain the last value of the cell, is there a way to accomplish this.

E.g. = IF( A1=B1, "retain last value", D1)

last value = the value of the cell prior either to A1 or B1 being changed.

View 6 Replies View Related

Retaining Previous Entry In Input Box?

Jul 20, 2014

I have the following code below. I would like to amend the code to retain the previous entry in the input box and amend this if the need arises

Code:
Sheets("data").Select
Range("B2").Select

ActiveCell.FormulaR1C1 = InputBox("Amend details if different from data in inputbox")

View 2 Replies View Related

Merging Cells And While Retaining The Same Format

Jan 31, 2007

I have cells that contain number that have dashes

For example

Cell M contains the number 001-1234
Cell N contains the number 1234567 (I have formatted the cell to appear with a dash at the beginning -1234567
Cell O contains the number 891 (I have formatted the cell to appear with a dash at the beginning -891)

I want to combine the three cells and have the number look like this
001-1234-1234567-891

Is there a formula that will do this

I have tried the Concatenate to combine the cells but it just combines the numbers and won't let me format the number as I want it.

View 9 Replies View Related

Eliminating ^ While Retaining Leading Zeros

Feb 1, 2008

Coworker was sent a spreadsheet with a singe column of loan numbers; some start with zeros, some don't. But every single cell ends with a "^". (Shift key and 6)

i.e. 0087459832^
782360134^

View 9 Replies View Related

.pip Files - Retaining Personal Settings

Mar 30, 2007

I am shortly to receive my new work laptop, but am aware that the new install of Excel (2003 v11, SP2) will naturally be without my custom 'cosmetic' settings.

By this, I mean that my choices of which toolbars are available, the order in which verious icons on the toolbars appear, the text tags under each icon, and of course my own user-defined icons (used to run my own macros).

I have some experience with .pip files and understand that these files are supposed to retain all your 'cosmetic' settings. But I've never been that sure a) how to use them b) if one can edit them directly c) whether copying them from my current computer to my new one will mean my settings are loaded etc. etc.

So, I wondered if anyone out there could give me some guidance on how I could successfully migrate my own 'cosmetic' preferences to my new install of Excel.

View 3 Replies View Related

Pivot Table Retaining Old Data

May 29, 2007

I made a spreadsheet and used pivot tables to summarise the data by project numbers (Row field of pivot table). I deleted the orginal data and copied in data from another spreadsheet. When I look at the detail in row field (click on the down arrow of the project button in the row field of the pivot table) it still shows the original project numbers plus the new project numbers. The data displayed in the pivot table looks like it only refers to the new projects but is not correct. Any ideas why the old project numbers still appear? Refreshing the data doesn't help. The only way I can get the correct data is to delete the pivot table and then recreate it.

View 4 Replies View Related

Retaining Data From Worksheet Being Refreshed

Jun 13, 2007

I have a workbook linked to an external source that is refreshed once a week. All the refreshed data is populated in column A. User defined text is typed into columns B,C,D and E. As the report increases or reduces in column A the text in B,C,D and E becomes out of sync with its original data in column A. Is there a way of keeping the data and tagging it somehow?

View 4 Replies View Related







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