+ Reply to Thread
Results 1 to 3 of 3

VBA Code, Select the last non-blank(visible) cell with a value in Column C

  1. #1
    Registered User
    Join Date
    05-05-2020
    Location
    Washington, DC
    MS-Off Ver
    Microsoft 365 MSO (16.0.12730.20144)
    Posts
    2

    VBA Code, Select the last non-blank(visible) cell with a value in Column C

    Hello All,

    I am a novice to VBA but well verse in writing formulas.

    I would like a VBA code to go to Sheet "Slide 1 Chart 1", select the LAST CELL in Column C that has a populated(visible) cell value, copy that cell, and then paste(value only) into that same cell.

    Each cell in Column C had/has a formula that pulls in "Values" if the formula is true. I run a report each day were the last cell with a value in Column C is dynamic by a formula. The cells above it are static(No formula). On the following day of running that report the last cell with a value needs to become static. Thus "Select", "Copy", "Paste(Values only)".

    LastColumn;Row;Cell does not work as it still see's the formula in the visibly blank cell and considers it the lastrow. It should ignore the formulas and only look at if a value(not data) is populated.

    Please help me with this!
    above.PNG

    lastcell.PNG

    below.PNG

    Thank you,
    Last edited by yeahprettimuch; 05-05-2020 at 03:06 PM. Reason: Adding images

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA Code, Select the last non-blank(visible) cell with a value in Column C

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 05-05-2020 at 03:03 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    05-05-2020
    Location
    Washington, DC
    MS-Off Ver
    Microsoft 365 MSO (16.0.12730.20144)
    Posts
    2

    Re: VBA Code, Select the last non-blank(visible) cell with a value in Column C

    Thank you! I'll give this a try

+ 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. Select within column down to first blank cell
    By cooper.1651 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2015, 03:11 PM
  2. Select visible range and add page break after every 20th visible cell
    By tuc47285 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-04-2015, 01:18 AM
  3. [SOLVED] Code to select visible cell range only
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-23-2013, 03:05 AM
  4. Need code to select a cell range that has visible values
    By Big Chris in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-27-2013, 12:18 PM
  5. [SOLVED] Help with VBA code to select first blank cell in a range
    By Sakalansalex in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-24-2013, 05:45 PM
  6. Select First Cell in First Blank Column
    By NSTurk725 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2010, 05:12 PM
  7. [SOLVED] I want to select the first blank cell in column A
    By Greegan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-13-2005, 09:06 AM

Tags for this Thread

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