Results 1 to 7 of 7

defined name problem in vba

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    defined name problem in vba

    Hi

    Normaly when you defind a name
    then the name getal have a reference to for example =Blad2!$A$1:$A$3

    So in vba i can get the value of the second rouw lik this.

     dim t1 as integer
    t1= getal.cells(2)
    But that workt in a normal sub. But when i do the same in the vba code under the sheet then i have a error.
    the methode_range form object_worksheet is faild
    Why ?

    A person give me the folwoing
     dim t1 as integer
    t1= [getal].cells(2)
    What is the use of [ in vba and { in worksheet formula's
    Where can i find more of it ?
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Run Time 1004 - App Defined or Object defined error with String defined path structure
    By sarails in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-11-2012, 09:38 PM
  2. Apparent Defined Name Problem
    By Huhenyo in forum Excel General
    Replies: 3
    Last Post: 02-11-2012, 04:49 AM
  3. Problem using formulas within macro + problem with defined name.
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2011, 04:39 AM
  4. defined Code Problem
    By need in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-02-2010, 02:26 AM
  5. defined name problem
    By arthas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2009, 01:55 AM
  6. problem with user defined function
    By panjo in forum Excel General
    Replies: 3
    Last Post: 06-16-2006, 06:25 AM
  7. defined names problem
    By scott in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-05-2006, 05:40 PM
  8. Defined range problem
    By Pat in forum Excel General
    Replies: 8
    Last Post: 01-17-2005, 08:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1