Deleting And Inserting Columns - Reached Its Limit

Apr 29, 2009

lets say i have 200 used columns. if i delete 150 of them and then (without saving the file) try to add 100 more i get an excel has reached its limit error. theoretically 200-150+100 = 150 columns, which should be well within the 258 column limit. but excel still gives me the error )its like its calculating 200+100=300 > 258). HOWEVER, if i save the file after deleting, i dont get any errors at all. is this a "feature" of excel and if so is there anyway of circumventing it? because i dont want to save the file prior to adding the columns (i do the whole thing in vba). actually i dont want to save the file at all unless the user click on the save button or choose save/save as from the menu.

View 9 Replies


ADVERTISEMENT

Excel Crashing When Inserting / Deleting New Columns?

Jul 21, 2014

I'm building a bookkeeping workbook that is only currently 800kb with TWO cells that have data validation and no cells have conditional formatting. There are a fair few formulae but they are all simply SUM, SUMIF and CONCATENATE.

View 1 Replies View Related

Disable A Range When A Numerical Limit Is Reached

Aug 30, 2007

How do I disable a range of cells when a numerical limit is reached?

Here is the scenario:

I have two worksheets, one called “Items” which contains a list of Items and their weight. The other sheet is called “Container” and displays a Type of container in cell B2, the weight capacity of that container (the numerical limit) in cell C2, and a range from B5 to B14 that needs to be filled out by an end user. The items in B2:B14 are chosen using Validation, form the Items sheet. The weight is brought in via a vLookup, and the total weight is calculated as items are added.

My problem is that I have yet to find a way to “disable” any extra cells in B5:B14 once the weight limit is reached, and clear the last cell data was selected for, all without destroying the Validation for the cells in range B5:B14.

I have tried many different things in the Worksheet Change Event, but none have yielded the desired result.

View 9 Replies View Related

Force User Onto Next Cell Once Character Limit Reached?

Feb 10, 2011

Currently using LEN to simply count 50 characters then it tells the user that they need to move onto the next line.

Is it possible with VBA that after 50 characters reached in the selected cell it forces the user into the next cell below and so on in a loop?

View 7 Replies View Related

Inserting Picture And Deleting?

Aug 28, 2012

I want a script that inserts a picture based upon criteria of another cell. So for instance if cell A1 = Mad then insert Mad.jpg else insert Happy.Jpg

I can get the picture inserted properly based upon the cell however the picture does not delete when I click the sub button again. I cannot make it delete Mad.jpg from it's location and replace it with Happy.jpg if the criteria in A1 says "Happy".

VB:
Sub Picture()
Dim myPict As Picture
Dim myPicts As Integer

[Code]....

View 8 Replies View Related

Deleting And Inserting Cells

Apr 14, 2009

The delete function has disappeared from my EDIT menu in excel. Delete and Insert has also disappeared when I right Click on the spreadsheet.

View 11 Replies View Related

Type Mismatch Inserting Or Deleting A Row

Apr 27, 2012

I've written a macro for a set of tests I've created. It says "If the old value of the cell is '-' and the user enters 'Pass,' 'Fail,' or '-' then insert something into the cell directly to the right of the modified cell."

However, I'm receiving a Type Mismatch error any time I insert or delete a row. I think this is because of how I'm getting the previous value of a cell. The conditional is saying "I don't have a solution if there was no previous value of the cell."

Code:
Dim old_value
Private Sub Worksheet_Change(ByVal Target As Range)
prev = old_value
If Not Application.Intersect(Target, Range("E1:E65000")) Is Nothing Then
If prev = "" Or prev = 0 Then
'Do Nothing!

[code]....

View 4 Replies View Related

Inserting/Deleting Rows - Speed

Apr 20, 2006

I have been playing with some code and was trying an alternate way. My first approach was matching numbers, inserting rows when needed and then deleting rows when needed. I wasn't satisified with this approach because...Well to be honest, I figured it out on my own and I don't think I'm confident enough in my coding skills yet.

Someone suggested that instead of inserting rows, copy the data below the existing data, sort and then do the rest. I did this, but by doing this it gives me over 1, 000 rows of data to loop through and delete duplicates. Yes, my code was shortened and seemed less complex, but it actually took longer with the new approach.

Inserting Rows = 4.6 seconds
Sorting then deleting dupes = 7 seconds

Does deleting multiple rows of data take more time then inserting rows?

View 4 Replies View Related

Disable Macro When Inserting/deleting Rows

Oct 29, 2009

Is there a way for a macro to be not active when trying to insert a row or a way to have the macro understand that it's just a row shift? I'm trying to have a time stamp that anyone changes the value in a column. The following code generates an error 1004: application or object defined error when I insert or delete a row.

View 14 Replies View Related

Inserting / Deleting Cells For Additional Calculation

Jan 25, 2012

I have a rather expansive spreadsheet with inventory statistics and want to insert some cells for an additional calculation and it will not let me add or delete cells. when i select the range to insert the cell my only choices are insert/delete rows.

View 2 Replies View Related

Inserting/deleting Rows Without Registering Cell Change

Oct 30, 2009

I can insert lines fine, but the problem is that now I want the worksheet to be able to delete rows without inputting time stamps. It can insert them with no problems. I have attached the file on as well.

View 3 Replies View Related

Inserting / Deleting Rows And Cutting Cells Causing Corrupted Formulas

Dec 12, 2013

Whenever you insert / delete row or cut cells out in Mon/Tue sheets it's causing issues in the table in the Weekly view tab.

Is there any way to prevent it? I don't mind redoing whole spreadsheet, it was done ages ago in a very fast manner.

I gave you an idea by deleting a row range in Mon tab which causes #REF error.

View 9 Replies View Related

Limit Of Time Your Can Hide Columns In A Macro

Aug 1, 2007

I often have macros that hide columns. Seems there is a limit to the number of time or columns that can be hidden before you get a debug. Message.

View 9 Replies View Related

Limit Number Of Rows / Columns In Spreadsheet (beyond Just Hiding Them)?

Nov 27, 2013

I would love to be able to limit the number of rows in a specific sheet so that I can quickly carry formulas to the bottom of a worksheet without carrying them to row 1,048,576. I'm aware of options to hide rows and/or to limit the scrolling with the "view code" option on the worksheet tab; however, I'm mainly worried about worksheet performance. When I carry a formula down, I don't want to see a spinning blue circle run for minutes at a time, and I'm hoping to avoid the same spinning circle when I undo my formula. Is there any way to actually limit the number of rows, or is there any other limitation I could put in that would increase worksheet performance?

View 1 Replies View Related

Inserting 2 Columns After Each Column?

Apr 23, 2012

I have data in 4 columns, A, B, C, D. Each column has 5 rows of data. I want to write a macro to automatically insert 2 columns, after each column in original dataset.

View 8 Replies View Related

Inserting Columns With Data

Sep 25, 2012

what i want to do is have an area where i can input data and then i have three options of inputing the data or resetting data that is already in the list of data so i start to create a list of data but i can reset/change values if i wish for example quantity. i would also like to have a way to subtract or add a number from the quantity assigned to a code/name of some form. i know that's quite a bit

View 3 Replies View Related

Macro That Allow For Inserting New Columns?

Oct 17, 2012

I have recorded a basic macro that allows me to copy a formulas in cells CF11 to CH11, and it pastes it into cells in columns CJ to CL. Copy of code is below if you need it.

The issue I have is that I need to insert new coumns into the worksheet, and I need to copy the formulas from columns CF to CH, and they will now need to pasted to columns CN to CP. Note that this is a monthly report where we keep the prior months, so each month will need to add new columns. There are 8 tabs in the workbook, and they all use the same macro, just over different rows (columns all line up).

Is there a way that I can get the macro to paste into the correct column without me having to adjust the macro each time?

Copy of code is as follows:

Range("CF11:CH11").Select
Selection.Copy
Range("CJ11").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Range("CJ20:CL20").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _

[code].....

View 5 Replies View Related

Inserting Breaks In Two Sorted Columns

Jul 13, 2009

I have been struggling to figure this out for several days now and i don't really know where to go from here.

I have 2 columns and i need to break them up at certain points.

The attached excel file should hopefully be clear enough to show what i mean.

The first tab is how the data starts the second tab is how i want it to look.

To clarify i need to break it after each change in the first column. ie from 1 to 2.

Furthermore, i need to break the "sub groups" the second column up after 15, and 30. I will never have a number larger than 32 in the second column.

I think the excel file will clear up what i mean.

View 13 Replies View Related

Maintain Range When Inserting Columns

Sep 30, 2009

I have a macro recorded that inserts into column E in the attached report, and then retrieves data from another worksheet in the workbook. In column D I am trying to keep a 6 month average which includes the latest inserted data, however every time I insert a column the relationship with column D is moved out by one. e.g. range E8:J8 becomes F8:K8.

I am also stuck with setting up a macro to import a new model into the report. I have set up a worksheet called new model with the manufacturer, model and fail descriptions, however all macros I have recorded fail when trying to insert the manufacturer and model into mulitple cells.

View 9 Replies View Related

Inserting Columns Without Changing Formulas?

Feb 7, 2014

I have a very simple inventory spreadsheet that I used to keep track of certain products. The issue is that I often have to insert new columns and when I do, the formulas get convoluted. Is there a trick to making them follow the structure of the formula before?

My formula is =SUM(GT4:GU4) and appears in the Running Total column. When I insert two columns - a white column where an order will be inserted, as well as a running total column. When I perform the insert, the formula for the inserted columns, as well as the set of columns immediately to the right require corrections:

Inserted columns: =SUM(GT4:GW4) [Should be GV4:GW4]
Columns to the right: =SUM(GV4:GY4) [Should be GX4:GY4]

I know how to manipulate the formulas correctly, I would like to keep a clean file for my predecessor.

View 1 Replies View Related

VBA Macro Not Inserting Columns Properly

Jul 3, 2008

I have a VBA macro I recorded that won't insert and copy columns into the proper areas. When I run this, It inserts every column all grouped together.

For example: I want to insert a column before column D, and give certain cells formulas. Instead, it inserts it before column C. The whole macro seems to, when ran, insert EVERYTHING before the range of data I am trying to split up.

Here is the
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 6/30/2008 by kmayfield
'
'
Range("C3:F3").Select
ActiveCell.FormulaR1C1 = "Jan-2008"
Range("G3:J3").Select
ActiveCell.FormulaR1C1 = "Feb-2008"
Range("K3:N3").Select
ActiveCell.FormulaR1C1 = "Mar-2008"
Range("O3:R3").Select
ActiveCell.FormulaR1C1 = "Apr-2008"
Range("S3:V3").Select
ActiveCell.FormulaR1C1 = "May-2008"
Range("W3:Z3").Select

View 9 Replies View Related

Prevent The Users From Inserting Columns Within A Certain Range?

Jan 7, 2010

I am instantiating Excel 2003 from vb.net and populating the spreadsheet from SQL. The workbook itself will be maintained even when the .Net program is inactive (so that the column headers are established and saved.) Is it possible to prevent the users from inserting columns within a certain range?

View 2 Replies View Related

Inserting Columns On Worksheet And Keeping Formula?

Jan 10, 2012

I have a spreadsheet that I can modify. It currently has a three product column but I need to insert 2 or 3 more columns to make 5 plus the total at the end. It also have a summary sheet. I insert the 2 columns and somehow got the formulas flowing. However when I hit the summary page its not showing results for those two new columns in the total. I am lost. I wish I could post the sheet. Its a multiple product break-even analysis exercise.

View 1 Replies View Related

Deleting Columns

Dec 26, 2008

Deleting Columns. I've got 2 codes here,

This:

View 3 Replies View Related

Excel 2010 :: Inserting Columns / Rows And Cells

Nov 20, 2013

For some reason I don't seem to be able to insert any columns/rows/cells in to my excel spreadsheet. This is a problem in both basis sheets and more advanced ones.

View 1 Replies View Related

Inserting Columns With Numbers Relative To Previous Data

Jan 19, 2012

the following issue:

I have a spreadsheet of questionnaire responses which range from 1-7

For example:

Respondent Q1

1 4
2 3
3 7
4 6

So each row is a new respondent and each column is their response from the scale.

What I need to do is code the responses into a different form. I need them to be represented as follows:

Respondent Answer1 Answer2 Answer3 Answer4 Answer 5 Answer 6 Answer 7

1 0 0 0 1 0 0 0
2 0 0 1 0 0 0 0

So that each number then represents the place on the scale from which it was chosen.

I tried recording a macro but I think this requires something a lot more complex.

View 3 Replies View Related

Inserting Entire Blank Columns In Pre-existing Worksheets

Jul 7, 2007

firstly i am cross-posting this topic so here is the URL to the same thread in a different forum.

[url]

whats up everybody? i have to use two excel worksheets that someone else already created to make CSV (comma seperated value) files. these CSV files are to be dumped into a database. the problem is that the table has more fields than the spreadsheet does (the spreadsheet has 3 fields - network, mask, size - and the table has 10 fields). i can insert one entire column before (to the left of) network (for the ID field in the table) without a problem, but when i try to insert entire blank columns after size (to the right of the pre-existing columns) it only makes columns for the first 14 rows. i know this because when i save it as a CSV file there are only 6 extra commas for the first 14 rows. is there a way to insert an entire blank column for the entire spreadsheet (as in all the way to the bottom)? i dont want to have to manually type in all those commas. i am using excel 2002.

View 9 Replies View Related

Deleting Extra Columns

Aug 14, 2008

I have an excel spreadsheet with Extra columns that have no data in them. I want to delete this columns so that there is no horizontal scroll, but highlighting and right-clicking and choosing delete isn't working. Not sure why. How can I delete?

View 2 Replies View Related

Deleting Columns In Worksheets

Mar 24, 2014

I tried to write a macro for deleting some columns automatically in my workbook

- it will be applied to all worksheets, except two worksheets called "samsung" and "toshiba"
- columns will be deleted from V to AA and AU to AZ in the related worksheets

Please check my attached file and my macro inside it.

deleting columns makro.xlsm‎

View 5 Replies View Related

Deleting Columns Where A Cell Within Contains A Value

Jan 28, 2010

I want to delete columns that contain a 0 value in row 2 of the column.

In my case, I have headers in row 1 and values in rows 2 and below. I eventually want to filter out the columns that contain no values below the headers.

Let me know if you need any more information for clarification.

View 10 Replies View Related







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