I want to set up a table that automatically adds rows, ideally to the top... The way I was guessing to do it would be to alter rows in the table to have a variable... My variable is 'acctstotal' anyway I figured there would be a way to edit the rows to acctstotal+ 1 or somthing along those lines but I havent been able to figure it out
btw acctstotal is a variable that simply counts the number of nonblank lines that are in the first column of the table which tells me the total number of accounts
I have no experience programming although I'm vaguely familiar with Excel offering ways to automate many processes. My current situation involves me having to insert a new line whenever a there's a change of term in a row after a long sequence of repeated terms in a specific column. So, for instance, we have something like this:
How can I have a number inserted into text on an excel sheet. for example if I have the number 100 in cell A1 and I want it inserted into the following sentence in sell A2:
You are 100 years old. I want the number to be able to change automatically in this sentence when the number in A1 also changes.
I can arrange for a new row to be automatically added to a spreadsheet after I have sorted the currencies in order?
So basically I am trying to record a macro that sorts the column into currency order then after the currencies have been sorted I would like an extra row added so that I can enter a total field in between....
Macro that would insert multiple pictures at once into one column with two rows per page (so that only two pictures are on each page) for word?
If so, would there also be a way to make it to were photos would have a caption box underneath each photo that list them as "Photo #1: Photo #2: Photo#3:" ect...
I know this is quite a task to achieve but I'm still relatively new to Macros and VBA and have a ton of pictures to integrate into Word for work.
In cell b5 I have =today() which automatically updates the date on a daily basis. What I would like to happen is for each day there is a new line is automatically inserted with the date so:
Sat26/04/2008gone off sickFri25/04/2008Thu24/04/2008Wed23/04/2008Tue22/04/2008Mon21/04/2008Sun20/04/2008Sat19/04/2008Fri18/04/2008days holidayThu17/04/2008Wed16/04/2008Tue15/04/2008
I would also like any information on each of the line to move down when the new line is inserted. I am not really that good with macros or VBA but feel that is the only option to solving this problem. Also would everything still update even if the file wasn't opened for lets say the weekend. So it is constantly rolling.
I'm building a spreadsheet which includes a few columns which have activex check boxes which are linked to cells. I want to allow the users of the spreadsheet to insert new rows if necessary. Ideally, when these new rows are inserted, the check boxes would also automatically appear in the corresponding columns of the new row (and be linked to the relevant cells), just the same way that pull-down menus and formulas automatically copy into the new row. Is there a way to do this?
I have a workbook that requires refreshed source data each day. The workbook has all of the macros and formulas that analyze the data. I have the following code to import the worksheet with the raw data (onto a fresh worksheet in the calculation workbook), but I would like to create code that also adds the date and time to the imported data worksheet -- not the date/time the raw data was created; instead, when it was imported into my calculation workbook.
Below is my code for importing the raw data worksheet:
I would like to create a macro which I can use over and over again, with slight modifications.
I have included a sample worksheet with two (2) sheets. Sheet 1 is considered my 'master sheet' of which I want to add data to, if it exists. Sheet 2 is some additional data that may or may not be included. The common thread, between the two sheets is column A.
I would like to either add to sheet 1 or create a sheet 3 with the data, whatever is more effective.
In this 'sample' case, I would like to move the data on Sheet 2, column 'H' to Sheet 1, provided both column "A's" match. Again, if it makes more sense to combine the two on Sheet 3, no worries. However, the next time I do it the data may be in a different column so I hope to understand how to change the 'From' and 'To' columns. My rudimentary skills want to say If it exists, place it here. If not, move to the next entry.
The end result would be all the data on Sheet 1 (as it stands), joined with the data on Sheet 2 Column H, if Sheet 1 Col A = Sheet 2 Col A.
This would be a process that I would do over and over again as I populate Sheet 1 with the data I need.
i have a spread sheet that has a number of different addresses in them I need a vb code that will insert 5 rows between each row of data starting from row 42 and has the possiblity of running to the end of the rows 65536. i believe the best way to do it is via column B which will always have data in it. i have tried a number of methods but they all only insert the rows once or they do it the required ammount of times one after the other so i end up with a whole section of blank rows and all my data still together.
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
1 worksheet I have a value and I need next to it the result i take from other worksheet.
LETTERS AMOUNT A Result C Result G Result
[Code]...
The list goes on.
So Pretty much I need to compare the value "LETTERS" on the first worksheet with the array of letters from second worksheet and insert in the field of the Result, the value next to the correct find in the array of letters ...
I'm using excel 2003 and was wondering if I could insert html around the cell data in a faster way than cutting and pasting it. Here is an example of a column and what I would like to do.
aaaa bbbb cccc dddd
Now I would like every cell to have HTML around it to be easily posted on a website. I would like the cells to now look like this.
The code below pulls information based on what i specify in a userform from another sheet.
I am trying to total the last 3 columns but for some reason the code sticks the sum formula right in middle of all my information. However, when i run the code (the exact same way) again then the code puts the sum underneath the last row as indicated in the code. How can i get the code to run right the first time around?
I have a column with lots of rows. I want to locate a specific one and insert some data into this row at specific columns. This is what i have come up with so far:
I need a bit of VBA code which will run automatically when a csv file is opened. The code needs to move anything after column F onto the next row and repeat until there is no more data. The data is generated by an external program but is put on the same row (not sure why it does this). I have included an example of the csv file (the data in it is garbage so ignore it) for you to look at. the header row which needs inserting needs to be:
Hope this is enough information for you. bear in mind the amount of data being generated could be quite large. it has to be run automatically in order to be used in seamless mail merge.
e13 = 0 until after the 10th of the month on the 11th it = $100.00 If I13 has an amount in it on or before the 10th e13 remains $0. Each of the 12 line of this rent roll needs to correspond to its own month.
I've written the following code to insert rows at certain points depending on certain conditions, looping through to the last row. However, as the last row number keeps moving, due to inserting rows, I am not sure how to alter the code to allow for this.
Dim LastRow As Long With ActiveSheet LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row End With
Macro (preferably) to look up some data in a workbook and paste it into another.
I have an active workbook with this format
Sheet1 Â ABCDEF1RECORDER IDDate HOUR IN KW Â Â Â 21000560805917/11/201100:15:00150Â 31000560805917/11/ 201100:30:00150Â 41000560805917/11/201100:45:00150Â 51000560805917/11/ 201101:00:00150Â 61000560805917/11/201101:15:00150Â 71000560805917/11/ 201101:30:00150Â 81000560805917/11/201101:45:00150Â 91000560805917/11/201102:00:00150
I have another workbook opened called "Carbon intensity" with this format
I would like to insert the values in Column B in the "Carbon Intensity" workbook into Column F in the active workbook corresponding to the dates and times.
This is an example of what it would look like afterwards
Sheet1 Â ABCDEF1RECORDER IDDate HOUR IN KW Â Â Â 21000560805917/11/201100:15:0015046631000560805917/11/201100:30:0015046141000560805917/11/ 201100:45:0015046051000560805917/11/201101:00:0015046261000560805917/11/201101:15:0015046371000560805917/11/ 201101:30:0015046381000560805917/11/201101:45:0015046691000560805917/11/ 201102:00:00150467101000560805917/11/201102:15:00150472
I'd like to insert the value of a cell in Excel worksheet A into the cell of another Excel workbook B. The twist is that the Worksheet A begins as a templated file and is copied into new jobs each time. The destination spreadsheet B location and name stays the same but the source file changes location. So the destination file B can't be looking to be updated. What needs to happen is that once the source spreadsheet A is copied into a new job, whenever the spreadsheet is updated and closed, it needs to "export" the new value into the source file B. Not the other way around as the destination file will not know the location of this new source file. Sorry for the confusing syntax but hope this is clear enough for an answer. Here's an example of the question: How do I automatically, on closing this source workbook A, update cell D24 into file C:MyFilesExcelFormerFile.xls Sheet1 cell B27?
Insert a drop down list that is attached to a bunch of data to make it easier to navigate through the data.
Therefore, when you chose one item in the list it will populate data in the worksheet for that item in the list and change for each item in the list.
For example, if you have ten people's names in the list when you pick Nancy it will show you information on her and when you pick Scott it will populate with completely different data. The data all coming from one master tab.
I have a userform with 4 text boxes. One of the boxes you have to enter in an amount. i.e. £25.52 This value gets put into cell E17 in my spreadsheet. When I click the button and it puts it in, it puts it in the cell as "£25.52" with left alignment and does not apply it as the accounting style, as set to that cell. The same happens if I just type "25.52" instead.
I also have a formula applied so that if E18 is "Yes", E19 will display "£0.00" otherwise, E19 should display the value of E17. And then column E has a total at the bottom of the values in Column E. Even when "£25.52" or "25.52" is entered in, it comes up in cell E19 as 25.52 (not with accounting style) but it doesn't add up in the sum at the bottom of the column.
I would like to know how can i insert a blank row in between ACC# when ever a new series of data begins
name Acc # Balance Date John 2222 200 june 2013 John 2222 344 june 2013 John 2222 700 Sept 2013 Silva 4444 333 June 2013 Silva 4444 333 June 2013 Silva 4444 333 June 2013 Raff 5555 897 June 2015 Raff 5555 897 June 2015 Raff 5555 897 June 2015 Raff 5555 897 June 2015
I have the following sheet with reg hours and ot hours. I need to insert a column that sums these two items. I used the macro recorder and it only works when the same amount of ID's or less. If there are more ID's it does not sum the remaining ID's. What it currently looks like:.........
I need to get data from an excel spreadsheet copied and into the body of an email. I have set it up to copy the data required, i have the email open, i have the to and subject fields filled in but i can not get the copied data inserted into the email. Where am i going wrong or better yet what do i need to write to get this to work.
Dim objOutlook As Object Dim objOutlookMsg As Object Dim msgtxt As String Sub send() msgtxt = Sheets("bed update report").Select Application.Goto Reference:="Print_Area" Selection.Copy Set objOutlook = GetObject("", "Outlook.Application") Set objOutlookMsg = objOutlook.CreateItem(o) 'Set objOutlookMsg = objsession.CreateItem(olMailItem) objOutlookMsg.display With objOutlookMsg .To = "someone@somewhere.co.uk" .Subject = "Despatch Overtime Hours" .body = msgtxt .send
End With Set objOutlookMsg = Nothing Set objOutlook = Nothing End Sub
I've got data output (~500 rows) that's going into a larger, formatted sheet. The data going into the sheet is about 8 columns of material and the formatted sheet has over 20 columns (the rest to be filled out by the engineers). I'm tacking the new information to the bottom of the sheet (in the corresponding, non-consecutive columns), but the question now is how to format it.
Each location has recommendations, about 1-5 rows. What I want to do is insert a row after each different entry (probably by location address) so it will be more visually accessible (this is the format of the sheet).
I've got a spreadsheet that I prepare for a group that has patient data subtotalled by physicians. The problem is that the group uses this data for data entry and wants a blank row between each different patient name within the physicians subtotals and I have no clue how to get there. Any chance there might be some VBA code that could accomplish this?