The following macro copies a range from "ThisWeek" worksheet to a selectable worksheet "Week1, Week2, Week3, etc. (determined by value in cell P13 (1,2,3,etc.)) The copy destination is currently cells F5:F36 but I want to make this range selectable also (ex. G5:G36, H5:H36, etc).
For example: If "ThisWeek" worksheet (fixed) cell $B$7 = "Adam", I want to match/lookup this name on row 4 (column F,G,H,etc) on the destination worksheet and copy the range of data to a column under the heading labeled "Adam". (No need to verify if heading exists)
Hope I have explained my problem clearly.
I am trying to use the COUNTIF function but over a selectable range. in other words instead of a fixed range like =COUNTIF(A1:A11,"=yes") I want to be able to choose the range Axx:Axx selected by drop down menus.
I have trying to develop the following macro (see below) which bases adds a column on another worksheet based on a cell value, this part works. I then want to copy the formulas from the column to the left of the inserted column, and this where I am struggling.
I found a question posed by 'TBW MK' and tried to adapt that. I can't work out how to express which needs to be copied - currently shown as Range(), given that it is a variable
Sub New_World5() Sheets("Process").Activate Dim ColNo As Integer ColNo = Worksheets("Input").Range("H2").Value With Sheets("Process")
I have two different Excel reports and the data needs to be copied from each column on one spreadsheet and pasted to the bottom of the equivalent column on the other spreadsheet.
So, is it possible to get a macro that will copy the data from one column then paste it to the next free cell in the column on the other spreadsheet.
If I could get some code to do one column then this should be enough to get me started and I could apply this to the other columns I need to copy.
Can a list box (or other type) be created that would come up and allow a selection of multiple items. I do not need the items to be viewable beyond the selection, only to be ablle to sum different segments of the rows that were selected.
As example: Upon clicking in cell B 141 of the sheet a box would come up that would include the descriptions (in column C) of all items that are between rows 1 and 140 that have identifeid by a "y" in Column B. Then you could select as many as you desired and the sum of the quantity (column d) of the selected items would then appear in D141.
I have a contiguous multi column, multi row numeric range that I want to copy (and sort in ascending order) into a single column on another sheet in the same workbook. What VBA code could achieve this, or alternatively can this be achieve via formulas?
If I put data into one of two cells I want it so that the other cell cannot be selected. I can't say I've struggled with this for days as I really don't know where to start
I am attempting to create a Menu (food) in Excel 2007. I have a list of foods that I would like to select once one is selected the next list would be for the next item and so on. I know how to create a drop down list but once I select an Item I would like the next list to narrow down the field (or choices). I am not sure I explained this well enough so here is another way to put it.
First Column would be a choice of meats. Beef, Chicken, Pork, etc. If you select say Beef the next column would be a veggie, Carrots, Peas, Green beans. But with Beef you cannot select Carrots. and so on.
If I create a pivot table, I'm able to click the arrow to the right on my row header, unselect "Show All" and then manually check boxes next to the rows I want to show. The pivot table then shows only the rows I'm interested in.
I can't figure out how to do this with filtering outside of the pivot table. I can select AutoFilter and then select "All", "Top 10" or individual rows, but I don't have the option to use a checkbox style selection to choose multiple, but not all, rows.
How can I set this up to have checkboxes associated with the AutoFilter dropdown so I can pick and choose which rows show?
I would just like to know if there is a way to add items to a drop down list that cant actually be selected.
Asking because I have a table from which the dropdown list gets populated and the user then selects a particular row but would like the header fields to also be added to the list just for reference.
I have attached the spreadsheet in question for reference.
Various test items are stored in columns. (First row of each column is the description of the test item)
Problem: 1) To reflect certain testdata in a chart I want to be able to select a different column (Y values) by means of a dropdownlist. X values are just the number of items (1 to ...)
How to make the charts data source selectable?
2) It seems that the input range of a ddl should be a list of items.
In my case they are in the first row of each column so only the first item is shown.
I have a spreadsheet which is updated daily. Row A of the sheet has the date in it, and every day a new column is created for the that set of data. I have the below code which works at the moment:
[Code] .....
I want to use this same code on another spreadsheet to do the same process (I need to copy and paste 4 columns (A,B,C + D, into E, F, G & H, then tomorrow it will copy E, F, G & H into I, J, K &L etc etc)). The problem I'm having is that A1:C1 is a merged cell, then D isn't (used as a border to separate). So when it is copied I need to select the merged cell columns and column D (i.e. A:C & D on day 1) and paste it into E:H with E1:G1 merged.
I have been working with a few people on here to setup a macro to copy text from a column of cells to another column and then print this in to a text document but it seams to have got stuck in a loop ....
in column B of sheet1 i have every 3rd-4th row a name. i need to copy the name and the the data on the row below the name to sheet2, the list of names can be min 2 max 30.
so sheet 1 has row 14- name in column B and C. in row 15 in columns d:z data for the name.
i need to copy this to one row in sheet 2 copied for each name up to 30.
I do data entry for a webstore and one cell is used to map out the exact product category/subcategory path. I currently have to copy the appropriate path from a long list on one page and then paste it into the cell. I have to do this a hundred times a day. It would be nice if each cell within that column can have these values stored in them so I can just click on the cell and open up a drag down box and select the needed value. Is this possible to do in Excel?
I have developed a user form in VBA which is used for entry into an excel worksheet. From this data, I need to do the following:
1) Create 2 output files for Job data entitled "J" and another file entitled "S". The "J" and "S" is captured in a field in the data. I need to hit a button that allows these 2 output files to be produced, so I need to 'loop' through rows of the data to do this/
2) In addition to 1), the user needs to be able to 'select' the date range they would like to see 'J' and 'S' data over. This will be based on a field called "Startdate'. How could I do this with the button above-can I parse an input value to a form and select the 'J' and 'S' files on this.
ID project Custodian 1 ABC James Johns 2 DEF John Doe 3 GHI Laura DiNapoli 4 JKL Lydia Koernell
I need to be able to display the custodians in column C on sheet1 ("Case Preview")
in sheet2("Search Term Breakdwn") starting in B10,C10,D10,etc until all the names in column C are there. The tricky part is that column C gets populated each month with different custodians coming from different dbs, so I have to be able to know how many rows in column C are populated with info.
I saw a few postings here regarding transpose and tried to used it, but to no avail.
I am using the following
Sub copyrows()
Dim MySheet As Excel.Worksheet Dim MySheet2 As Excel.Worksheet Dim rcell As Range
I am trying to copy a range of data from one sheet to another. I can almost get it to work. Here are the values of the variables I use in the code below
Code: cal_col_counter =5 col_counter=1 and no_of_rows=249
I'm trying to write a DO, LOOP that simply starts at a cell, goes down the column and copies one by one each cell into another sheet until the next cell isempty.
here's my
Sheets("source").Select Range("A41").Select Application.CutCopyMode = False Do Until IsEmpty(ActiveCell.Value) Selection.Copy Sheets("active orders").Select Range("D1").Select ActiveSheet.Paste
Loop
It currently just loops infinitely because it isn't selecting the new row down (A41 is always full). I'm not sure how to offset the row within the doloop as well as offset the rows to paste accordingly in the new sheet....
I am trying to create a macro that will reformat my data from A2:QB24 into 9 columns starting in N28:V28 with the data from every 9 columns pasted underneath each other.
Basically, I need to start with copying Range A2:I24 and pasting it into cell N29, then copy Range J2:R24 and paste it into cell N53, etc.
If possible could someone please help with changing the below code so that column "D" in the rngIn part of the code can be a variable. i.e so the user can select one, two, three or four columns (with visible data) to be copied. The "b3" part is a constant.
I have a macro that is copying information from one spreadsheet into columns "A through E" on the next available row in a seperate spreadsheet. Beginning with column "G through L" I need to copy the formulas from the row above in the same spreadsheet. Is there a way to do that since the row being copied from will change each time?
I require a row of details to be copied to another worksheet by typing in a unique ID using a macro so Sheet 1 is a data base of items (every item have a unique code like 1001, 1002 etc) and sheet 2 has a table, and next to the table is a cell, which i need to work like a search engine.
i need to be able to type the unique id in a cell, in sheet 2, then click an Add command Button. This button then finds the unique id in sheet 1, and copies all the items details in the same row, into sheet 2 in the table, then i require the search engine to be cleared for the next item to be added. (Assumed Experience:Below Average, I know few formulas and know very basic macros)
I'm trying to Copy and Insert formulated cells from sheet "Add Entry" range A3:AZ4 to Sheet "January" just above the last row containing data (the Totals line) starting in column B. The cells need to remain the same in cell size and maintain the formulas that are inmbedded within them. I want to be able to do this repeatedly by applying this macro to a button. I would also like (if possible) to alternate the color of these cells in an alternating row fashion.
I have a workbook and I am looking to write a macro that will do the following in a sheet named Monthly Chart.
Could someone assist me (or let me know if this is possible) in writing a macro to do the following: First search in column C for the last row with a value, then select the range C(last row with value):P(last row with value), then copy that set range into a worksheet named Chart2.
I am new to VBA and have tried to develop the code for finding a specific stock symbol (Column A) from over 4200 symbols from a downloaded csv file, copy the data in in its (specific symbol's) row (in the next 5 columns B to F) to the 3rd blank row in the master workbook (data arranged from Bottom to Top). In the Master workbook each stock symbol has a worksheet with its symbol as the tab e.g. BHP.AX is the tab or sheetname for BHP stock in the Australian Stock Exchange. The downloaded file comes from a subscribed site EODData which provides daily OHLCV (Open/High/Low/Close/Volume) data against each symbol.
My attempt is shown below and it is very primitive. It does not work! I wish to run it from the Master workbook (name:-0PortfolioASXMultipleIB.xlsm) and not from Csv Data file.
VB: Sub Macro0CopyFromCSV() 'Insert a blank row and format it in Master workbook Rows("3:3").Select Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
I have following code (see below) which finds the duplicates within columns, but I require copying and replacing duplicate values within different row cells, as I am currently finding this task hard to implement.