+ Reply to Thread
Results 1 to 3 of 3

Problem with referencing a cell in VBA

  1. #1
    Registered User
    Join Date
    12-03-2014
    Location
    South Africa
    MS-Off Ver
    US
    Posts
    18

    Problem with referencing a cell in VBA

    Hi all,

    So I have encountered problem when I want to refer to a specific cell under a heading in a spreadsheet.

    I.e. Cell A1 has the value Ref Number, so naturally I will rename cell A1 as "RefNo".

    But now, under this heading, I wish to select and copy the data below Cell RefNo...How would I, using VBA, tell the program to start selecting and copy the data under the cell "RefNo"?

    Thanks

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,015

    Re: Problem with referencing a cell in VBA

    Do you know how much data to copy in advance? To refer to the cell beneath RefNo you would use:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Problem with referencing a cell in VBA

    May be something like that
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Cell Referencing Problem
    By rpellizzari in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 06-04-2009, 12:12 PM
  2. Cell Referencing Problem!
    By wjsok85 in forum Excel General
    Replies: 4
    Last Post: 06-04-2009, 10:28 AM
  3. Cell referencing problem
    By muckerz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-13-2009, 08:12 PM
  4. Formula cell referencing problem
    By Narcil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2008, 08:15 PM
  5. Cell referencing problem
    By PaulC in forum Excel General
    Replies: 3
    Last Post: 06-23-2008, 06:57 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