+ Reply to Thread
Results 1 to 5 of 5

ActiveCell to a fixed row selection

  1. #1
    Registered User
    Join Date
    02-04-2019
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    41

    ActiveCell to a fixed row selection

    Good afternoon,

    I am looking for some guidance on the best way to be able to select a range from an activecell to a fixed Row on a sheet.

    For instance, if the ActiveCell is A10 and I need to select to A10:I25, I know how to do this but I need the starting point to be dynamic, with the range end always being row 25. I don't know if this is possible and how to go about it.

    Any pointers or code examples would be gratefully received.

    Thank you,
    Chris

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: ActiveCell to a fixed row selection

    Can you explain how dynamic?

    Will it always end on I25 or will right most column change? What are the ranges that would be valid ActiveCell to trigger this event?

    EDIT: Oh and should it be only on one worksheet this should happen? Or all sheets in a workbook?
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    02-04-2019
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    41

    Re: ActiveCell to a fixed row selection

    Hi CK76,

    Thank you for answering.

    I am creating a quote template for a colleague, whom wishes there to be flexibility with the format/design.

    So for this example, the quote table will populate range A5:I10 (so 4 rows for parts, plus 1 title row). Below this, from A12, I am looking to create a merged range to I25 (full Range being A12:I25) - however the number of parts quoted each time will vary so the starting position of the merged range should be dynamic, if possible.

    This is will only be implemented for the first page and only if required.

    Is this enough or do you need more detail?

    Chris

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: ActiveCell to a fixed row selection

    Ok... I generally don't recommend using merged range. But I assume that there's no need for further processing after this.

    May be something like below?
    Please Login or Register  to view this content.
    Then you'd either assign it to shortcut key and/or button.

  5. #5
    Registered User
    Join Date
    02-04-2019
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    41

    Re: ActiveCell to a fixed row selection

    Thank you very much, I will give it a go.

+ 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. Row Range Selection From ActiveCell
    By werko in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-17-2018, 05:08 AM
  2. Get Listbox Selection into the ActiveCell
    By matth3881 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-28-2014, 08:19 AM
  3. [SOLVED] Question on ActiveCell.Value And Selection
    By JM967 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2013, 08:32 PM
  4. controling activecell in a selection through macros
    By Suraj3825 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2013, 08:32 AM
  5. Performing an action on a selection (ActiveCell?)
    By Glooms in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2009, 03:56 AM
  6. Replies: 6
    Last Post: 04-23-2006, 06:20 PM
  7. Delete all entries in selection except activecell
    By Elaine in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-10-2005, 04:06 PM

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