excel & vba

  1. D

    Import selected Worksheets from another workbook

    Hi Guys, I need to copy and paste data from multiple workbooks and multiple sheets. (name keeps changing of worksheets as well as workbook) I have a code but here I need to manually select the cells. I just want to select the sheet and it should automatically import the entire data in the...
  2. E

    Insert object - What do the numbers between ( ) do or mean?

    This is related to a different question I asked about getting exact position on a sheet of a option box but I have made it a separate question in case it can be applied to other objects and therefore perhaps help others. Admin please delete if you feel this question is not appropriate. I have...
  3. I

    Macro to insert blank row after data value change for multiple rows

    Hello, I am having some trouble with figuring out how to insert blank rows to my data set. I have been able to find information and figure out how to insert blank rows based off of one column. The problem for me is that I need to be able to do this for multiple columns where the data value...
  4. N

    Excel Drop Down List-auto populate

    Hi i have 5 column table - 1st column -"product" ,2nd column-"A",3rd column-"B",4th column-"C",5th column-"D" Product are selecting from drop down list.The drop down data come another sheet. have 4 product (Name) LSOU ,LCOU,COC,DEC If select each product name to row "LSOU" , "LCOU" , "COC"...
  5. E

    Macro to copy excel chart to specific locations in Word doc

    Hi all, Hope you can provide some advice. I've found and slightly adapted VBA code which requires the user to select a chart in excel, the code then copies and pastes into the location where the cursor is located in the word doc. See code below. Is it possible for the code to select each...
  6. Q

    Copy/Paste/Insert image into different size textbox in multiple sheets

    Hi I have a large workbook with a variety of documents the majority of whichhave my company logos as standard but I need to be able to insert the customerlogo into these sheets. The position and size of the logo is different from onesheet to another so pasting to a specific cell is not going...
  7. K

    Copy a Folder Template and Create Multiple Folders Based on an Excel Spreadsheet

    Hello, I created a folder template which has several sub-folders. I want to copy this template and create new folders with names from an excel spreadsheet. The path for this template is: C:\Users\woodenk\Documents\Employee Personnel Files\_Folder Template. I also placed the spreadsheet...
  8. S

    Excel VBA to hide rows based on cell value

    I am looking to write VBA to hide 2 rows on Sheet10 (code name) based on cell value on Sheet1 (code name). The logic I am looking for assistance on is the following: If Sheet1 cell C33 does NOT = "Apple" then hide Sheet10 rows 108 & 109, but if cell C33 is blank, then do nothing. Thank you!
  9. N

    copy data from .csv file to other excel files

    I created a code which can open a .csv file and copy data from .csv to an excel file without opening both.(It looks like not opening) Actually it works for excel files (.xlsx) but When I use a .csv file as below code it displays me an error message "SUBSCRIPT OUT OF RANGE". How do I solve this...
  10. S

    Excel VBA to delete rows that dont match cell value

    I am looking to write a VBA to delete rows based on a call value within Sheet13. If the value in column A (over 50,000 rows) does not match the cell value in H1, then delete that row. With the amount of rows, I am concerned with the speed and efficiency of the code.
  11. S

    Update excel VBA to rename tabs based on cell value

    Current: I have code that updates 4 tab (Sheet6, Sheet7, Sheet8, Sheet10) names based on cell values in range D2:D5. This range is populated with formulas, which can result in blanks and is located on a tab named “Calculations”. Each cell is associated with a specific tab: D2 -> Sheet6. If...
  12. D

    Excel VBA script to loop through 3 cells and highlight them

    Could I possibly get some help. I need a user to be able to click a button and just rotate through 3 cells A15:A18 and highlight each one with a color. The loop would be infinite as the user will be pushing the button through out the course of a day. Possibly 500 times in a day.
  13. C

    Excel VBA - Closing a specific File Explorer window out of multiple open File Explorer windows

    Cell A3 contains folder path. Cells below contain file names with extensions. Upon selecting a cell below, my Excel macro opens that file's location in File Explorer and out of multiple files in that folder selects this particular one, which can be seen in Preview. When next cell containing...
  14. A

    How to Merge Rows Based on Cell Value While Keeping Unique Values and Keeping One of Each Repeated Value

    Hello, I have a workbook that contains classes a person must take based on their roles in a system (job duties). Because each roles requires certain classes and all of the roles have repeated classes, I would like to combine the rows based on the user while keeping all unique values and keeping...
  15. M

    Excel VBA: Inserting "Page X of Y" in a word document at the current cursor position

    Hi MrExcel wizards. :) I have been searching for hours trying to find something to solve this specific problem. I have information in an Excel file, which I want to transfer to a word file. I have everything working perfectly. All i now need is to add "Page X of Y" at a specific location. I...
  16. N

    Build Code to Expand Number Range in VBA

    I have these set of zip code ranges in my excel sheet and I would like to build a code that expands these number ranges into new rows by the simple press of a macro and for it to recognize the numbers after the comma whether they are single numbers or a new range. Any help is appreciated. I also...
  17. N

    Fix Code to Append Expanded Numbers Properly

    So I'm having an issue with my current code. <code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans...
  18. D

    Merging two Private Sub

    Hi All, i have 2 Private Sub Worksheet_change(ByVal Target As Range) codes that work on their own. i need them to work in the same sheet. whenever i do this the 2nd code does not run. how do i merge these please!!? Code: [Private Sub Worksheet_Change(ByVal Target As Range) Dim rng As...
  19. D

    If a Cell is blank move the row to the bottom

    Hi All, i have been looking for a VBA code that automatically sorts my data when it is entered/ updated. if there is a value in column I the VBA should move the row to the next row that is not blank in column I resulting in having all blank cells at the bottom. i know you can us a sort but i...
  20. Q

    How can I stop all workbook sheets being shown when unprotect code runs

    I have a workbook with a large number of sheets (100+) Ihave a button for administrator/high level user use which unprotects the wholeworkbook which works OK, BUT when the code runs it shows/flashes through allthe sheets as they are being unprotected which is very annoying (and may evenbe a H&S...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top