+ Reply to Thread
Results 1 to 2 of 2

Select all existing data

Hybrid View

  1. #1
    Registered User
    Join Date
    11-08-2022
    Location
    Davenport, IA
    MS-Off Ver
    MS 360
    Posts
    15

    Select all existing data

    Hello,

    I'm trying to write a macro that selects all data from one sheet and uses that same data in a formula on a separate sheet. Below is my issue. Instead of defining a certain area, I would like the macro to fill all the way right then all the way down within a formula.

    Sub Breakout()
    '
    ' Breakout Macro
    '

    '
    Rows("1:1").Select
    Selection.Copy
    Sheets("EFT").Select
    Range("A1").Select
    ActiveSheet.Paste
    Sheets("Payment").Select
    Range("A1").Select
    ActiveSheet.Paste
    Sheets("EFT").Select
    Range("A2").Select
    Application.CutCopyMode = False
    ActiveCell.Formula2R1C1 = _
    "=FILTER(Sheet1!R2C1:R96C10,Sheet1!RC[7]:R[1000]C[7]=""EFT"","""")"

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Select all existing data

    I don't understand but I'm guessing you need something like:
    ActiveCell.CurrentRegion.Select


    If you want a better answer you need to post a workbook.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

+ 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] How to “select” existing Textbox value?
    By aquixano in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2016, 09:19 AM
  2. Add range of data to existing Access table and delete if already existing
    By rousseauassociates in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-26-2016, 11:11 AM
  3. update existing code to copy and KEEP existing data
    By scott micklo in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-26-2016, 05:41 PM
  4. [SOLVED] Modify existing code to select file instead of select folder
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2014, 09:41 AM
  5. Replies: 11
    Last Post: 11-04-2013, 04:32 PM
  6. Replies: 3
    Last Post: 10-14-2013, 03:06 PM
  7. Replies: 1
    Last Post: 08-15-2009, 05:52 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