+ Reply to Thread
Results 1 to 4 of 4

Assign values with offset and transpose

  1. #1
    Registered User
    Join Date
    08-25-2019
    Location
    London, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    2

    Unhappy Assign values with offset and transpose

    I'm a VBA rookie, so sincere apologies if this is a bad post.

    I have a macro that will take many years in its current state. I cannot figure out how to implement assignment (or any faster method that avoids copy/paste) with both transposing and range offsets.

    Please see below an extract of my very slow code. How can I assign values instead of copy/paste?

    Please Login or Register  to view this content.

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

    Re: Assign values with offset and transpose

    Selecting sheets and cells is expensive. This will copy\transpose\paste without selection (not tested)

    Please Login or Register  to view this content.
    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.

  3. #3
    Registered User
    Join Date
    08-25-2019
    Location
    London, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    2

    Talking Re: Assign values with offset and transpose

    Thank you, this is perfect!

    Edit:

    Actually, I had to make one minor change (as below).

    Please Login or Register  to view this content.
    Last edited by ChrisSampson87; 08-26-2019 at 06:17 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Assign values with offset and transpose

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] VBA Offset and Transpose
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2014, 11:38 AM
  2. Transpose, Offset, Match
    By NOOR8225 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-10-2013, 07:16 AM
  3. Replies: 0
    Last Post: 03-21-2013, 11:49 AM
  4. [SOLVED] How to assign offset for a variable
    By shailaja_prasad in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-26-2012, 11:07 AM
  5. Excel 2007 : Transpose and offset
    By coop110580 in forum Excel General
    Replies: 2
    Last Post: 02-11-2011, 10:40 AM
  6. Assign a range using offset
    By Neutralizer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-03-2010, 09:15 PM
  7. Replies: 0
    Last Post: 03-30-2006, 02:35 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