+ Reply to Thread
Results 1 to 4 of 4

Set range address as variable and then clear the cell via the variable

  1. #1
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Set range address as variable and then clear the cell via the variable

    Is there a way to declare a cell's address as a variable and then clear the cell via the variable?
    I thought of using:
    Please Login or Register  to view this content.
    ...but to no avail
    Looking for some guidance on this issue.
    Thanks!

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Set range address as variable and then clear the cell via the variable

    You can only set an object to object variable and a string is not, but range is. You can find the range address by using the find function and returns fixed address.

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Set range address as variable and then clear the cell via the variable

    Please Login or Register  to view this content.
    BSB

  4. #4
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: Set range address as variable and then clear the cell via the variable

    Quote Originally Posted by AB33 View Post
    You can only set an object to object variable and a string is not, but range is. You can find the range address by using the find function and returns fixed address.
    I was trying everyway possible and i just posted one of the ways, sorry about that

+ 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. Clear range of columns where row is known (J to BC) and row is a variable
    By Nickoby in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-14-2015, 07:33 AM
  2. Copy Range with Offset Variable and Clear Data
    By ptmuldoon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-28-2014, 09:59 AM
  3. [SOLVED] Clear Range with variable
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2014, 07:47 AM
  4. Clear Contents of a column in a range variable
    By jed38 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2014, 07:59 PM
  5. [SOLVED] Assigning A Cell Address to A Variable, Using A Variable - Error '1003'
    By ch_abs in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-28-2014, 01:36 PM
  6. [SOLVED] ? Variable Ranges ? how to change address in Formula range base on another cell value ?
    By DrAlloway in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-27-2014, 07:34 PM
  7. [SOLVED] Using variable for range address
    By dr chuck in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2006, 08:15 PM

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