Results 1 to 3 of 3

Thread: Cell referencing in VBA

  1. #1
    Join Date
    Jan 2006
    Posts
    115

    Cell referencing in VBA

    I have got some issues getting a cell address to be refrenced relative in a macro. When I am using the activecell.address command then the cell is absolute. When I am using the Row/Column comman with [ ] to signify relative reference then the reference is relative to the location of the formula and not the original cell. When I am selecting the D5 as part of the coding then I want D5 to be used not $D$5. What am I suppose to do here? Any ideas? Thanks.

  2. #2
    Join Date
    Jan 2006
    Posts
    2,257

    Re: Cell referencing in VBA

    Can you tell us whether you are using the Macro Recorder, if so then click the Relative References button and see what does it do.

  3. #3
    Join Date
    Jan 2006
    Posts
    115
    I just found a solution, all i needed to do was to add parameters to the ActiveCell.Address command to ActiveCell.Address(False, False, xlA1, False, False). It will make the cell reference relative. So, when I used the ActiveCell.Address.Column I was getting a number instead of the letter.

Similar Threads

  1. Applying absolute cell referencing to many cell in Excel
    By Nyota in forum MS Office Support
    Replies: 2
    Last Post: 24-02-2012, 07:23 PM
  2. Adding Harvard Ref Style to Referencing - Links Gone
    By LizH78 in forum Windows Software
    Replies: 1
    Last Post: 08-04-2011, 07:35 AM
  3. Entity Referencing
    By Bhardwaj in forum Software Development
    Replies: 5
    Last Post: 20-01-2010, 08:48 AM
  4. Audit tool referencing required
    By AbhayD in forum Software Development
    Replies: 5
    Last Post: 16-01-2010, 12:13 PM
  5. How can I download Harvard Referencing into Word Office 2007?
    By Hayworth in forum Office Update Service
    Replies: 2
    Last Post: 30-04-2007, 11:42 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
  •  
Page generated in 1,713,579,533.96681 seconds with 18 queries