+ Reply to Thread
Results 1 to 3 of 3

Relative cells in Macro

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    abu dhabi
    MS-Off Ver
    Excel 2007
    Posts
    34

    Relative cells in Macro

    Greetings,

    When I record a macro, the excel cells(fields) coded are fixed and not relative. i.e unable to do similar type of operations at different cells. How to solve this problem. Is there any settings to be done.

    Thanx.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Relative cells in Macro

    View>>Macros>>In the drop down option select Use Relative References


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Relative cells in Macro

    This link describes how to record using relative references.

    Relative References in Macros
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. [SOLVED] Macro to sum selected cells into a new row - size and positions ARE RELATIVE
    By macropulos in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-06-2013, 03:46 PM
  2. Selecting relative cells in a macro?
    By lady2beetle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2010, 11:35 AM
  3. Macro Linking Checkboxes to Cells with Relative References instead of Absolute
    By nameyers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2007, 03:00 PM
  4. [SOLVED] Relative cells in macro - and pasting a formula too!
    By in forum Excel General
    Replies: 4
    Last Post: 02-23-2006, 10:52 AM
  5. [SOLVED] Relative cells in macro - and pasting a formula too.
    By in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2006, 09:20 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