+ Reply to Thread
Results 1 to 6 of 6

Variable Range - Set Rows AND Columns as variables

  1. #1
    Registered User
    Join Date
    08-21-2018
    Location
    Germany
    MS-Off Ver
    MS Office 2016
    Posts
    24

    Exclamation Variable Range - Set Rows AND Columns as variables

    Hi guys,

    i Need to have a variable range for selecting shapes in a specific range on my sheet.
    My Code can already shift the range on any row (easy because of Number Format). But how can i set variables instead of column letters (like A or S in the example) to enable also a shift in columns.

    Please Login or Register  to view this content.
    Look in the attachment for further Explanation and a sample set to try your solution on.
    I appreciate any help.
    Attached Files Attached Files
    Last edited by JonasBig2; 09-20-2018 at 04:45 AM.

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,840

    Re: Variable Range - Set Rows AND Columns as variables

    Hi
    Not so clear. Can you post a sample of your workbook ..
    How would you like to store the variables of "A" and "S" .. in cells or in the code itself?
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Registered User
    Join Date
    08-21-2018
    Location
    Germany
    MS-Off Ver
    MS Office 2016
    Posts
    24

    Re: Variable Range - Set Rows AND Columns as variables

    I explaned my attempt in the attachment. You can also try your solution on my created example in "Sample.xmls"

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,840

    Re: Variable Range - Set Rows AND Columns as variables

    Do you mean something like that
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-21-2018
    Location
    Germany
    MS-Off Ver
    MS Office 2016
    Posts
    24

    Re: Variable Range - Set Rows AND Columns as variables

    Yeah exactly but i Need to increment the letters in every Loop. Is there are alternativ for writing only numbers to select a Range.
    Thats what i found on the Internet, but it didnt work in my example:
    Please Login or Register  to view this content.
    Only numbers for selecting a shape. So easy to increment

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,840

    Re: Variable Range - Set Rows AND Columns as variables

    Try this version
    Please Login or Register  to view this content.

+ 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. Text to rows and not columns when you have multiple variables
    By sharma06shubham in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-05-2016, 01:23 AM
  2. continuous variables across columns and rows
    By freak11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2014, 07:49 PM
  3. Two variable data table - both variables in rows
    By kbka in forum Excel General
    Replies: 8
    Last Post: 12-01-2013, 11:08 AM
  4. Replies: 3
    Last Post: 09-11-2012, 02:03 AM
  5. [SOLVED] Using variables in range columns
    By construct in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2012, 09:45 AM
  6. Using Variables in Ranges to select entire rows or columns
    By BeefNoodleSoup in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2012, 12:37 AM
  7. Grouping Rows with Range Variables
    By Dan G. in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2006, 03:35 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