I have built a table with a lot of columns. I would like to create a user form to show a majority of the information in the columns so I can hide the columns in the spreadsheet so there isn't so much to look at. A lot of columns can be overwhelming when looking at it. I know some of the most popular ways to write VBA so that data in the user form makes it into the table. However I noticed that if I ever needed to add a column I then have to edit the vba code to make sure the data still goes in the correct cells.
So my question is this. Is there a way to write the code using the table column headers so the code uses the header label as a point of reference instead of the column number?
Related
Fisrt i would like to state that i don't know much about vba other than what i pick up from the internet and forums like this one. I have a problem and i'm hoping some on this forum will come to my rescue.
I'm trying to create a simple equipment maintenance system in excel. I do not want to use the vba user form Because i do not have much knowledge of vba coding.I have two sheets, Sheet1 (called Form) and sheet2 (called Data). So i have craeted an on sheet form on the left of the sheet1 (Form) which i would like to stay visible at all times So to achieve this i picked up a method from the internet of creating a scrollable list (Displaying all data entries from sheet1 (Form), i have also picked up vba code to save and reflect form entries on Sheet1 (Form) on sheet 2, so far so good. Coming to the problem, i would like to make and delete entries directly on to the scrollable list which would also reflect on the data sheet. Another problem i would like to know if possible is how to make the maximum value of the scrollable can increase automatically as data rows increase.
Please HELP!
I have a large imported .csv as a (Query) table in an Excel workbook. I'd like for users of the workbook to be able to select a small subset of that data and update some values without having to play around with filters on the table.
To that end, I've set up a FILTER on a separate sheet, something like:
=FILTER(my_table[some_column], my_table[id_column]="some value")
That pulls in values from the relevant column and displays them.
My question: is there any way to allow users to edit the values retrieved with the FILTER, so that the changes are reflected in the original table? Attempting to edit such a value now just edits the underlying field, causing the FILTER to update and display #SPILL! (which makes sense, since there is not enough free space to render the result).
I've looked at options for FILTER, and thought about writing some custom VBA code to do what FILTER does "manually", and then watch the sheet for updates in that range - but that seems like a lot of coding to do something I would imagine is more commonly needed?
Am I going to have to code this up in VBA? Or is there some alternative approach to using the FILTER?
I am attempting to find a solution with either excel or visual basics.
I have an expanding column of remarks on multiple sheets that I need to search through for a keyword (I’m using the word “change” or “chang” to capture “changing” when needed)
When this keyword is found, I need it to give back the cell address, along with a defined name I’ve set up (one for each sheet).
I was able to make a table on a “summary sheet” to include the “new comment”, address, and defined name, and it works well enough. My only concern now is if I add a new row and therefore add a new comment in the column on one sheet, I will have to go back and add a row to my table, and make sure the address and defined name are also corresponding to that “new comment”. This will get very messy and errors can occur, especially since I could have 20+ sheets.
So far all I have been using is excel formulas. But I have also been playing around with excel macros to try and accomplish this (with no luck).
Any help would be greatly appreciated! And I of course can explain this better if need be.
Edit: I added a picture of the general basis of what I’m trying to accomplish. I can’t add the code I’ve been trying as it’s on my work laptop- so I made a simple mock-up of my sheet to include here. I took pictures of the highlighted cell in sheet 1 to show the formulas, and then a picture of sheet 2.1
I have a set of data that I wanna make dynamically by clicking dropdown and to reflect that on chart. The problem is, I have like small tables (like in Example, Material A, B, C..) with their certain columns, and that is always the same. But how to connect them to the chart so that I only click which Material I wanna?
seems simple but I am not figuring out with more selections like this...
PivotTables is one of the option, I just managed...but I would like to know with functions also.
To answer this problem, actually the best option is Pivot tables. So to put in one sheet all the data (one column for material, other for date and so on..), because theyre in the same shape lets say, and in my case I know I will always get the same shape and set of data, just date/tonnage and registration is gonna be changed. So, hit the refresh button inside Pivot and there you have it.
That looks great using Pivot Charts, without any kind of formulas or functions that gave me a thought at the beginning.
Greets!
I have an issue that I know is solve-able, I just cant find the setting or work out how to do it. I have a report where I have merged two columns. Lets say these are columns a and b. I want that when the report is exported to excel that you can click into column A, and it does not merge with column b. this would allow you to filter etc by the data under column a. The reason column a and b are merged in the first place is that the heading needs to go across two cells due to size.
I know this is do-able as it exists on a report i inherited, just i can't find the setting.
This is usually due to the misalignment of your header cells with your table cells. The Excel export tries to have everything formatted the same as in the report so it will sometimes use two columns for the table cells and merge them so it can align the columns to the header columns. This is problematic when it comes to manipulating, filtering and sorting the spreadsheet.
The best way to avoid this is to create an Excel renderer that doesn't render the header part of the report as described in my answer here.
However, if the cells need to be merged in your report deliberately then you aren't going to be able to do what you want to do using your current report as Excel will duplicate the formatting, including the merged cells.
Probably the only way to get something like what you are after is to create another report that is formatted the way you would like it to be in Excel. In the header of your original report put a text box (or an image with an Excel icon) with an Action on it to open the new, properly formatted, report in Excel, passing across parameters as appropriate. Now the user just need to click on the Action link in the original report to open the more user-friendly report in Excel.