I want a UDF to copy a data range, add a new worksheet and paste the range into it as part of a function calculation not a user interface macro.
I simply cannot add a worksheet from a Sub that is called by a Function, only by a Sub launched as a macro. As shown below - the Function quits at Sheets(SheetName).Select as there is no such Sheet.
It seems that VBA cannot add worksheets from UDFs. Does VB .Net do this? How can I add sheets within a UDF without user interface objects?
Just need to delete some hyperlinks in column A on 50+ worksheets. Thought a loop through all the worksheets would do it. Only works on active sheet. Forgive my ignorance, don't really even know where it goes, once it works - module or workbook?
Let's say I have a workbook with 7 worksheets named, for example, "Instruction", "Begin", "Worksheet 1", "Worksheet 2", "Worksheet 3", "End", and "Data". (in that order)
What I want to do is run a macro to go to whatever worksheet that is in between "Begin" and "End" and copy, for example, cells $C$1:$D$10; then paste as formula into worksheet "Data" starting from cell C1 and then down a list (i.e., copied cells from "Worksheet 1" get pasted as formula into "Data" cells C1:D10; then copied cells from "Worksheet 2" get pasted as formula into "Data" cells C11:D20, and so on and so forth).
But if I were to add more worksheets (e.g., "Recipe" and "ToDo") positioned in between "Begin" and "End" and run the macro again, it'll either 1) re-copy all the formulas from the included worksheets back into "Data" including the formulas from the newly added/placed worksheets or 2) it'll add the formulas from the newly added/placed worksheets and paste into "Data" at the end of the list.
Can create the macro to run based on the position of worksheet, and not based on the name of worksheet, since ultimately there will probably be over 10 worksheets between "Begin" and "End".
I'm trying to perform the same process to all the worksheets in my workbook. This is the code I have now, but it will only apply to the single active worksheet:
How do I modify this macro so that the worksheet array will select all the worksheets except sheet 1?? My workbooks will have varying numbers of worksheets ...
Instead of just counting all worksheets I want to count the number of worksheets between 2 control worksheets (Start and End). Reason for this is that I have a Workbook that grows weekly and each new worksheet is inserted after "Start". I have a macro that lists the Worksheet names but it grabs all and I only want those between Start and End.
I need to write VBA code to clear all Values, all values beginning with an = sign for eg = 9725, except formulas and text on all my worksheets, except the last 2 worksheets.
I have a large data file, to make work easy for myself i have seperated each section into different worksheet. well my problem is. i want to use this very simple method for SUM "=SUM(A1+A2+A3)". If I am doing this on a same worksheet its no problem at all.
Is there any way to use this same simple method between different sheets? like. Sum of A1 of sheet1 + A1 of sheet2 + A1 sheet3 here.. A1 is a cell and sheet 1 onwards are different sheets
I need to add a row in tab "Clients", every time I have a new customer. Then I need to add that same row in another tab "Master". I tried using a macro but it copies the same row with the same information again and again.
Basically i need to add a row, put in some info and that automatically the same row is added in another tab.
how to get the maximum value from two worksheets and displays the output or maximum value on another sheet? I have attached a sample worksheet. Sheet 1 and Sheet 2 contains values to be compared while sheet 3 should contains the output or maxed value.
run a code that passes the word alarm from worksheet 3 to worksheet 2 as 100 instead of as the word alarm..... but i need it that it can copy the number 100 on any cell range between cell 2 to cell 10 on worksheet 2 depending on the other data i copy
Is there any way that you can combine two worksheets or Excel files, for example: WORKSHEET_1 has columns and values as: firstname lastname city state
WORKSHEET_2 has coulms with NO values as: firstname lastname address city state phone
I want to take the info from WORKSHEET_1 and insert it into WORKSHEET_2 without specifying any columns since WORKSHEET_1 might sometimes have only 1 column and sometimes might have all 5 columns.
The purpose of this is to create a standardized Excel file that I need to import into a Database, however the users might have Excel files without all the columns required therefore I need to "standardize" the worksheet before being imported and have any black values import as NULL into the Database
I have 5 Sheets and want to ADD a particular cell say A20 from 4 of the sheets onto A20 on the 5th Sheet. In Lotus 123 sheets are identified as A:a20, B:a20 etc How are they identified in Excel?
I'm looking for a function to look up a value from other worksheets after selecting a person's name from a drop down list. Here is an attachment to further illustrate.
I'd like to update some of the hardcoded numbers to functions that would pull from lookup tables. However, when I enter this in A1,
="Blah, blah "&B1&"."
In a "fresh" spreadsheet I get "Blah, blah 2009." , in cell A1 where B1 has 2009 typed in. In a "stale" spreadsheet I get "#VALUE!" in cell A1 (with 2009 typed in B1).
I've tried right clicking--> format cells and then changing to a variety of formats w/no luck at all. The only thing that works is to create a new sheet in the workbook and reformat the table and cells by hand. Clearly this is an ineffective workaround.
So, exactly what is the property that I need to reset in the "stale" worksheets that will allow, ="Blah, blah "&B1&"." to be read properly?
I've being asked to create this awesome new spreadsheet that summaries data from two other spreadsheets. I personally have no idea about excel but have gotten quiet good with the vlookup and isna formulas etc and so far so good. Till i had to search for a value over 12 worksheets. Ive tried Vlookup using an indirect formula using named cells etc i found but i cant work it out and all this reading has turned my brain to mush. So what im trying to do is:
I have a new spreadsheet called summary. What i need to do is pull sales data through from a spread sheet called "Sales Orders_2009". In the spread sheet there is multiple tabs, 12 of which i need to search. The tabs are called SalesJan, SalesFeb etc. On each tab i need to search in the data range B10 to I34. In the Summary spreadsheet i type an invoice number into A2 and that is the lookup value to search for across the 12 worksheets.
Suppose I have and excel workbook with 100 sheets and I want to click from one sheet to another. I created a table of all the sheets and hyperlinked the sheets then copy/pasted the table into each worksheet but that seems primitive. What if I have to revise the table? I will have to do it hundred times !
Is there a smart way to accomplish this using one smart master table that I can copy and paste into each sheet or somehting similar?
I do have a workbook has many worksheets. I would like to be able to match (or search) for first name and / or surname between one worksheet (Sheet,1, which has all the names I would like to match with the other worksheets) and the other sheets in the same workbook (the data is very sensitive). Is the possible way of doing this using VBA.
I have 3 Worksheets in Excel I would like to merge into a new worksheet. Worksheet A, B, C. I have 133 rows of information on each sheet.
I would like to merge them in a particular order. I would like to take Row1 of Worksheet A, then merge Row1 of Worksheet B, and then merge Row 1 of Worksheet C.
So on the new Worksheet I have 3 rows of combined 3 worksheets. The would like to repeat this for all rows 2, 3, 4 etc. till will get to row 133 or end.
I have attached a spreadsheet, which has a master data sheet and 2 other worksheets (Sheet 1 and Sheet2) that have linked Choose Functions from the main data worksheet.
I would like to send copies of Sheet 1 and Sheet 2 to seperate people, however would not like them to be able to view each others worksheets or the Master Data sheet, as it is sensitive data.
Does anyone know how I could create a macro, that enables me to click a button which would protect & hide two of the worksheets including the name of the worksheet (e.g. protect & hide worksheet "Data" and "Sheet 2"). This way I could send the entire spreadsheet to someone while hiding the sensitive information.
I would like to perform a calculation with each cell in a range from 2 worksheets and place the result in a range on a third worksheet.
I thought I could use the For Each Cell in Range construct but I don't see how to reference the two ranges in a nested pair of For loops. I am sure there must be an simple/elegant way to do this.
I have a problem and wanted to know if there was an easier way to create links to various worksheets. I have a folder with 59 worksheets. The names of the Worksheets are the weeks of the year(example LA-01-01-09) I have another workbook with 13 worksheets one for every month and a sheet that totals the whole year up.
What I want to know is how can I create a link to everyone of those weekly sheets to go to my monthly sheets,so when data is entered into the weekly sheet the monthly sheet will update automatically? The weekly sheets are setup exactly the same. I'm looking only to pull row 3 columns c:d:f:g:h:i over to my monthly sheet.
I have an example of my weekly sheet and monthly sheet.