About 983,000 results
Open links in new tab
  1. How to set a block variable in excel vba - Stack Overflow

    Apr 19, 2016 · rowNum = .Columns(6).Find(What:=Max, after:=.Cells(n - period_high, 6), LookIn:=xlFormulas, lookat:=xlWhole, searchorder:=xlByRows, searchdirection:=xlNext, …

  2. Excel VBA Object Variable or With Block Variable Not Set

    Sep 26, 2022 · You haven't assigned values to sysnumrow and sysnumcol, so both are the default for an Integer variable: 0. Cells (0, 0) is not valid, hence the error. You'll get the same …

  3. Dim statement (VBA) | Microsoft Learn

    Mar 29, 2022 · Use the Dim statement at the module or procedure level to declare the data type of a variable. For example, the following statement declares a variable as an Integer. Also use a …

  4. VBA Data Types: How to Declare (Dim) and Set VBA Variables

    Aug 30, 2024 · Variable declaration (VBA dim): How and why. In VBA, declaring has two steps: Set a name for the VBA variable. For example, you might give your numbers variable, the …

  5. How to Declare Variables and Assign Them Value in VBA

    May 26, 2021 · A good declaration way and a correct assignment process are fundamental to writing accurate and efficient code. This article will share with you what’s the declared …

  6. Writing VBA Macros From Scratch - Automate Excel

    Jul 8, 2022 · You can set any starting and ending numbers you like; you can also use variables for these numbers. By default, For-Next loops count by 1. If you want to count by a different …

  7. Excel VBA Tutorial – #9 Writing Macros with Variables

    Jan 25, 2019 · In this tutorial you learned how to use variables to make your code readable, reusable, and flexible. Don’t forget to always declare your variables to avoid any bugs – Option …

  8. Variables in Excel VBA - Step by Step Tutorial - Excel Easy

    This chapter teaches you how to declare, initialize and display a variable in Excel VBA. Letting Excel VBA know you are using a variable is called declaring a variable. Initializing simply …

  9. Variables in Macros VBA for Excel - Practical Guide

    You can tell the macro that the variable will be used to store a String, a True/False value, a number of different number types, including Integer and Long, and more. To declare a variable …

  10. VBA for Excel throws "Object variable or with block variable not …

    Mar 30, 2014 · In my code, I have declared these variables: Then, inside a For loop, I have this code: However, that code throws the "Object variable or with block variable not set" run-time …

  11. Some results have been removed
Refresh