dim as integer

  1. B

    Error checking - Dim i as Integer

    Hello, I have the following code to check that each cell = 0. There are 12 cells, for each month of the year and I was trying to make it flag up which periods did not equal zero. However, this code will only show "Period1". Thanks in advance With Sheet22 Dim i As Integer i =...
  2. Nayasoch

    Declare Dim as Integer and Boolean or Long

    I have this code which doesn't work and when I complie and run It shows Error Variable not defined and highlights the CurrentChart or ChartNum. As I am aware Dim var1, var2 can be declared but in my case it is not working if I remove Dim ret As Long Dim formHWnd As Long It works again...
  3. U

    Compile error: ByRef argument type mismatch in function call

    I have had this problem before but never in something so simple. In this case it is looking at the variable DataRowCount that is defined as an Integer in the function and assigned the value of 1 in the subroutine. In the subroutine I get the Compile error and it highlights the variable. Can...
  4. G

    How do I automatically hid rows on a cell selection?

    Hi In one cell I have a Data Validation list so the users can choose a question. (Source: Choose, Automation?, No Automation?) If they choose "Choose" I would like to hide rows 59 to 79. If they choose "Automation?" I would like to hide rows 59 to 63. And if they choose "No automation?" I...

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