+ Reply to Thread
Results 1 to 3 of 3

Code For Going to a Cell & Capturing The Value

  1. #1
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro Plus 2021
    Posts
    424

    Code For Going to a Cell & Capturing The Value

    Good Evening All,

    It has been a while since I played with macros and sadly I have forgotten many of the basics. I am hoping someone can help me.

    I have built a macro that does exactly what I want it to do to a specific stage and I can't seem to get the code right for the next bit and as a result I am close to abandoning it.

    The code I have already written leaves the cursor on a specific cell. I want the macro to remember the value of that four digit number in that cell before it moves on. The cell it is on will move with time so I don't want to put a reference like A25 = Year.

    I am guessing it has something to do with using Activecell.Value but I'm not sure.

    I also want it to add one to that four digit number and remember also remember that in the macro so that I can use it further on.

    Many thanks for any help.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: Code For Going to a Cell & Capturing The Value

    SavedData=Activecell.Value, or
    SavedData=Activecell.Value+1
    Ben Van Johnson

  3. #3
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: Code For Going to a Cell & Capturing The Value

    This is the best I can do since you didn't post a workbook or a code example.

    Static Statement

+ 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. Issue capturing values when running code subsequently - Help needed
    By Smummer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2022, 12:44 AM
  2. audit log VBA code not capturing IF formula result
    By Alister Davis in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-13-2018, 09:11 AM
  3. Capturing Total of project code
    By thong127 in forum Excel General
    Replies: 1
    Last Post: 12-09-2015, 01:58 PM
  4. Help with capturing a cell value
    By Eryn21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2012, 10:25 AM
  5. Capturing a cell's contents/value for later
    By soran2484 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2010, 11:52 AM
  6. capturing value from a random cell
    By ivanandzorro in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2009, 07:51 PM
  7. Capturing First Change In A Cell
    By carl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2006, 09:25 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