+ Reply to Thread
Results 1 to 4 of 4

Modify change event to absolute cell reference?

  1. #1
    Registered User
    Join Date
    03-13-2013
    Location
    Wichita,KS
    MS-Off Ver
    365 Aps for Enterprise
    Posts
    60

    Modify change event to absolute cell reference?

    I need to change the following code so that when a user inserts a row above or below Cell D36, the change event (I think that's what this code/operation is called) still operates on the same cell. In the spreadsheet I would just add $ signs for absolute reference but I am not sure how to do this in VBA.

    Please Login or Register  to view this content.
    Your help is greatly appreciated!
    Marvin

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Modify change event to absolute cell reference?

    Suggest that you give the range D36 a name and then refer to this in your code. If the cell moves, the name will stay with the cell.
    Martin

  3. #3
    Registered User
    Join Date
    03-13-2013
    Location
    Wichita,KS
    MS-Off Ver
    365 Aps for Enterprise
    Posts
    60

    Re: Modify change event to absolute cell reference?

    Mrice,

    Thanks for your help. How do I do this? I'm a real newbie at Vba. Also, just in case it changes anything, I have several cells in a row that have this change event that I need to make absolute reference. The pattern goes like this:

    Please Login or Register  to view this content.
    Thanks again!

  4. #4
    Registered User
    Join Date
    03-13-2013
    Location
    Wichita,KS
    MS-Off Ver
    365 Aps for Enterprise
    Posts
    60

    Re: Modify change event to absolute cell reference?

    Mrice,

    After a little experimentation, I figured out that I could name the cell in the spreadsheet and use that reference in Vba. You are the best!

    Take care

+ 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. Change a macro to from and absolute cell reference to selected cell.
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2010, 01:19 PM
  2. Copy selected cells, then change to absolute cell reference
    By Carlsbergen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2009, 03:15 AM
  3. How to change absolute cell reference with formula
    By mzypt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2008, 11:36 AM
  4. [SOLVED] Change linked cell reference to absolute
    By RAP in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2005, 11:05 AM
  5. [SOLVED] How do I change a cell from absolute reference to relative referen
    By simonsez in forum Excel General
    Replies: 1
    Last Post: 05-17-2005, 04:06 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