+ Reply to Thread
Results 1 to 4 of 4

Relative locations to absolute locations using VBA

  1. #1
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    Relative locations to absolute locations using VBA

    I am trying to solve how to turn relative locations into absolute locations using VBA.

    I start with a document of unknown number of columns. I use the code below to go to the right-most column.

    Please Login or Register  to view this content.
    Question 1: How do I get the absolute location of my current, right-most cell?

    Question 2: How do I turn this right-most column into a range of which I take the maximum value of?

    The code below calculates the maximum value, but Arg1, and Arg2 needs to be my range, say, starting at row 2 and going to row 100,000 - and of the right-most column.

    Please Login or Register  to view this content.
    In the attached example the desired solution is 1,000.

    ABS-REL LOCATIONS.xlsx

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Relative locations to absolute locations using VBA

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    Re: Relative locations to absolute locations using VBA

    Yes, that is the answer I was looking for. Thank you.

    The site below has more information on the type of solution posted here.

    http://www.rondebruin.nl/win/s9/win005.htm

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Relative locations to absolute locations using VBA

    You're welcome.

+ 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. Incorporating Google Map inside spreadsheet having Two locations to show locations
    By phanikumarbh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-22-2015, 09:10 AM
  2. How to calculate errors (standard, Absolute or Absolute Relative)
    By rz6657 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-09-2015, 02:01 PM
  3. Relative Locations
    By jamgood96 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-08-2011, 02:47 PM
  4. Using relative cell locations to copy in loop?
    By mpkavanagh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2011, 07:02 PM
  5. Relative import locations in macro
    By rbmcclen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2006, 08:13 AM
  6. Migrating Locations
    By LenB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 AM
  7. Migrating Locations
    By Victor Hitchings via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 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