+ Reply to Thread
Results 1 to 4 of 4

Trying to copy and paste macro that reads paste location from a cell.

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    540

    Re: Trying to copy and paste macro that reads paste location from a cell.

    The following isn't dynamically finding where to paste the content from MODELS but it might be a start- you'd need to find the dynamic equivalent of C1 as the intended destination:

    
    Sheets("MODELS").Range("D6:D489").Copy
    Sheets("PAST").Range("C1").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
    
    Application.CutCopyMode = False
    Excel 365 user. To unblock a downloaded macro-enabled workbook, go to your "Downloads" folder > right click on the workbook name > click 'Properties' > check the 'Unblock' checkbox. You can now open the workbook.

  2. #2
    Registered User
    Join Date
    11-08-2022
    Location
    Clarion, PA
    MS-Off Ver
    365 for Business
    Posts
    21

    Re: Trying to copy and paste macro that reads paste location from a cell.

    The value in C1 has the location. As the location changes so does the value in C1. This is the reason I was doing it this way.
    In the above script would the macro just paste the contents into C1?

+ 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. Macro to read a cell for the location to goto, copy, and then paste elsewhere
    By Kfrayne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2017, 03:45 PM
  2. [SOLVED] Copy Paste Macro Relative to Button Location
    By Lacaycer in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-21-2017, 01:21 PM
  3. Copy and paste between two work books paste into unspecified location
    By jessica88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-22-2014, 07:28 AM
  4. Replies: 3
    Last Post: 08-15-2013, 01:22 PM
  5. VBA Copy-paste values with changing paste location
    By booost in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-16-2012, 10:39 AM
  6. Seach, Copy, select paste location, paste using macros
    By helpdave in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2010, 11:36 PM

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