Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Error 2023 in Range

Error 2023 in Range

Scheduled Pinned Locked Moved Visual Basic
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    priyaahh
    wrote on last edited by
    #1

    Hi Friends, I am getting an error 2023 in range variable. Set rFoundCell_Value = Range(rFoundCell.Address).Offset(0, 1) in above rFOundCell is having range address as "A1" As wanted to fetch the value of the next col to A1 i am using the above line. I am not sure about this error. Please Help. Regards, Priya.

    D 1 Reply Last reply
    0
    • P priyaahh

      Hi Friends, I am getting an error 2023 in range variable. Set rFoundCell_Value = Range(rFoundCell.Address).Offset(0, 1) in above rFOundCell is having range address as "A1" As wanted to fetch the value of the next col to A1 i am using the above line. I am not sure about this error. Please Help. Regards, Priya.

      D Offline
      D Offline
      DaveAuld
      wrote on last edited by
      #2

      What you are trying to do is set the rFoundCell_Value to an range object, i think that is why you get the error. have you tried, rFoundCell_Value = rFoundCell.offset(0,1).value Look at the code i provided to a similiar question earlier, it uses values, ranges, offsets http://www.codeproject.com/Messages/3536297/Re-Remove-whitespace-in-front-of-String-element-of.aspx[^]

      Dave Don't forget to rate messages!
      Find Me On: Web|Facebook|Twitter|LinkedIn
      Waving? dave.m.auld[at]googlewave.com

      P 1 Reply Last reply
      0
      • D DaveAuld

        What you are trying to do is set the rFoundCell_Value to an range object, i think that is why you get the error. have you tried, rFoundCell_Value = rFoundCell.offset(0,1).value Look at the code i provided to a similiar question earlier, it uses values, ranges, offsets http://www.codeproject.com/Messages/3536297/Re-Remove-whitespace-in-front-of-String-element-of.aspx[^]

        Dave Don't forget to rate messages!
        Find Me On: Web|Facebook|Twitter|LinkedIn
        Waving? dave.m.auld[at]googlewave.com

        P Offline
        P Offline
        priyaahh
        wrote on last edited by
        #3

        Hi Dave, Yes I am trying to set value to an range object..I have changed and working fine.. Thanks.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups