declaring

  1. sharky12345

    Help declaring a variable

    Can someone please tell me how I should be declaring the following? With Me.ListBox1For i = 0 To .ListCount - 1 If .Selected(i) Then ReDim Preserve arrContacts(cnt) arrContacts(cnt) = .List(i, 0) cnt = cnt + 1 End If Next i End With If cnt > 0 Then Students = Join(arrContacts, "; ") End If...
  2. J

    Declaring variables: VB.NET Vs. VBA?

    In VB.NET, a variable is declared using the syntax Dim Foo As Integer = 10 I have just discovered that in VBA this does not work, and must instead be written as either Dim Foo As Integer Foo = 10 or as Foo = 10 Is the second of these an acceptable way of declaring a variable? If not, what...
  3. J

    Declaring a Table Name after VBA creates column headers

    Hi Guys, Been trying to figure this out using ListObjects.Add, but so far no luck. Here's the scenario... Let's say VBA code dynamically produces an unknown number of column headers on a separate worksheet. I want to declare a table, and format it as such based on how many columns are...
  4. M

    Can I declare global arrays with VBA

    Can I declare a global array that's available to all modules within the workbook, I tried declaring a variant array as Public but it gave me an error
  5. R

    Declaring variables - Dimm'ing :)

    Hi there... just a newbie getting my feet wet with programming in excel. I have a lot of declarations and I'm sure I can be declaring them in a better fashion. Can someone provide a more concise alternative to the following: Dim MyChart As Chart Dim ChartData1 As Range Dim ChartData2 As...
  6. S

    Array not recognized

    Hello Beautiful People I am trying to use an array that relates a row from a scheduling page I have to a database row in another worksheet. The array "RD_to_ProjSum_Array(RD_Row) takes RD_ROW (my database row) and returns the schedule row excel keeps saying that "Sub or Function is not...
  7. T

    Excel VBA Help with Declaring Variables

    I am getting an object required error for some of my declared variables not sure how to correct it. I probably have more errors than this too if anyone can help me out it would be appreciated I don't have much experience in VBA. Dim i As Integer, j As Integer, k As Integer Dim x As Range, y As...

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