+ Reply to Thread
Results 1 to 3 of 3

VBA Formula Copy with spacing

  1. #1
    Registered User
    Join Date
    11-06-2024
    Location
    Boston, MA
    MS-Off Ver
    Current
    Posts
    1

    Question VBA Formula Copy with spacing

    All,

    I have this formula =FILTER(A:D, (E:E=M1)*(F:F=O1),"") is located in Cell N2

    What I want to do with the formula is copy it X numbers of times based on a value in cell H1.
    There will also need a gap of 20 rows when pasted. I.E it will end up being pasted in N2, N22, N42, etc...

    The issue im having is that in the formula is references M1 and O1 for the filter.
    when copied it should reference M21, O21 etc. It does copy correctly when I just copy and paste, normally.

    When I do via the VBA editor, it still references M1, and O1.

    Please Login or Register  to view this content.
    Any help would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,004

    Re: VBA Formula Copy with spacing

    Please Login or Register  to view this content.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    11-01-2024
    Location
    Korea
    MS-Off Ver
    M365 64bit v2410
    Posts
    210

    Re: VBA Formula Copy with spacing

    Try this...
    Please Login or Register  to view this content.
    Last edited by RhiSJ; 11-07-2024 at 05:33 AM.

+ 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. Copy Column Values to Rows with Spacing
    By lancelotlink in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-11-2019, 02:51 PM
  2. Replies: 6
    Last Post: 01-14-2018, 04:30 PM
  3. Copy all cells except blanks, keeping the same spacing.
    By JimmyWilliams in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-26-2017, 12:32 AM
  4. [SOLVED] Formula to correct spacing in UK postcodes?
    By mslouisebrain in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-09-2016, 11:09 AM
  5. Copy and Paste while retaining spacing
    By hzrdc2 in forum Excel General
    Replies: 2
    Last Post: 10-02-2014, 03:57 PM
  6. & formula - spacing
    By superspurs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-10-2009, 04:24 AM
  7. Rows Spacing, Column Spacing
    By Pukka83 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2008, 12:05 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