ary

  1. DataBlake

    Better Understanding of 2D Array Writing [VBA]

    Sub aanewWPcode() Dim ary As Variant Dim i As Long With ActiveSheet ary = .Range("A1").CurrentRegion.Value2 End With End Sub So i have this macro that will assign an entire sheet as an array I'm trying to copy the entire 2nd column to the 1st column so <tbody> Blank Part...
  2. S

    trying to run this code through customized ribbon and place it in module

    HI, I'm trying to run the following code from customized ribbon and wants to run this code for all sheets but when i do that it just skips the second case and exits the program. Can you please assist how can i make this to run in module for all sheets. I'm fairly new to VB and i really...
  3. S

    How to make custom addin

    Hi. i'm trying to make custom addin for the below code. I'm new to excel can you please assist how can i customize ribbon in order to run addin. in addition, how can i make addin for this code Sub test() Dim Ary As Variant Dim NewBk As Workbook Ary = Range("A1", Range("A" &...
  4. W

    Tips to efficient macros?

    I have a macro that freezes my workbook. After running the macro, I can move around, click cells, etc etc, but once I start typing a formula, and hit enter, excel freezes. it doesnt crash, it just freezes. I can close the workbook without ctrl alt delete. When I hit enter the formula disappears...
  5. W

    Calling a macro for each sheet in a loop

    Hello, I am struggling with trying to get my macro to go to each individual sheet and call (run) another macro Dim ary As Variant Dim sht As Variant With Sheets("SheetsToRun") ary = .Range("B1", .Range("B" & Rows.Count).End(xlUp)).Value End With For Each sht In ary...
  6. H

    Array Defined by Cell Entry

    I'm using this code to filter a list on ws2 based on lists on ws1. I have 10 lists each with different variables. I want to be able to put a validation list in a cell on ws2 with the names of each list on ws1. This input would then be used to define "Ary" below. Is this just a matter of...
  7. S

    change header for tabs using vb where tab names are listed in a group of cells

    I'm trying to updatespecific tabs with a header using Visual Basic. Below is the code I have sofar. It's pointing to a specific tab ("PrintPage") and looking at G12down on PrintPage and adding a new right page header. This code works like a charmwhen I want to print the list of tabs just by...
  8. E

    combining VBA code creating bugs

    I use several subs for the file I maintain and an odd bug has started happening despite no change to the code. The rows that have data in them are supposed to be underlined as there are 10 columns of data and when it's printed out it is easier to read. The issue is that there are blank rows...
  9. J

    Fixing ary copying and pasting

    Hello, I have some code that copies and pastes data from cells in certain workbooks into columns in the main workbook. When running this, the ary 0-3 seem to be mixed in order when pasted and come up with some blanks when there are none. I do not have the code available at the moment but I...
  10. E

    Auto sorting table based on date

    I have a table that I update continuously with new information. This is table is then filtered to three seporate sheets with the following code Sub FilterCopy() Dim Ary As Variant Dim i As Long Dim Sht As Variant Ary = Array("Weld", "Composite", "Rubber") For Each Sht In...
  11. B

    Filter On List

    Good morning I am using some vba Filter On List code found on this forum (By the Amazing Fluff) i simply change the ranges and added the criteria in cells K1:K3 not yielding the results I need. This is the code Sub FilterOnList() Dim Ary As Variant Ary =...
  12. M

    Shortcut for Permutations with Repetition

    Hi all, in the excerpt of a code below I am trying to enter all permutations of 4 things. Is there a shortcut to do this without typing out all 256 permutations with repetition (4^4 = 256)? Thanks for your help! If Col = 1 Then Ary = Array (1, 1, 1, 1) ElseIf Col = 2 Then Ary = Array...

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