+ Reply to Thread
Results 1 to 4 of 4

paste array into userform - is it possible

  1. #1
    Registered User
    Join Date
    11-18-2014
    Location
    australia
    MS-Off Ver
    2015
    Posts
    43

    paste array into userform - is it possible

    i have 27 arrays that are to be pasted into a sheet. the problem is the size is dynamic (always 3 columns, but anywhere from 100 - 10000+ rows)

    currently i have them all on a sheet side by side, and the code works fine and all that (thanks to much help here!). however, the sheet is a mess, since i have 85 rather wide columns...the generally non-excel-inclined people who are using it are doing a lot of mis-pasting

    so my question is: is it even possible to paste the data (3 columns by N rows, csv file) into some sort of user form / input box type situation, so it can simply ask them outright to paste "the correct" data, then have the sheet populate from that?

    i have a suspicion it's not but who knows

    thanks

  2. #2
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: paste array into userform - is it possible

    1. Lock the sheet down.
    2. Put a button on the sheet that the paste-ees (pasties?) can click
    3. code behind the button to validate and manipulate the clipboard

    Try this link for instructions on manipulating the clipboard.
    http://www.cpearson.com/excel/Clipboard.aspx
    Frob first, tweak later

  3. #3
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: paste array into userform - is it possible

    or...
    Have an 'input' sheet to paste the data in. Once pasted and tested by code, present the user with a dropdown to select where the data should go.
    Last edited by Neil_; 07-04-2016 at 04:03 PM. Reason: too many eees in sheeeeeet

  4. #4
    Registered User
    Join Date
    11-18-2014
    Location
    australia
    MS-Off Ver
    2015
    Posts
    43

    Re: paste array into userform - is it possible

    Thanks mate! both workable ideas, i like the clipboard thing, will experiment with it

+ 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. Userform, Search, copy an paste data from a userform database to another sheet.
    By masro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2015, 02:42 PM
  2. [SOLVED] Userform Values in an Array
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2014, 09:51 AM
  3. Loop new messages containing a table, populate a dynamic array, paste array to Excel
    By laripa in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2013, 07:20 AM
  4. [SOLVED] Add Range to Array find Array value and Paste back to Range
    By Foreverlearning in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-28-2012, 05:45 PM
  5. Array - Copy Formula, Paste as Array
    By lilanngel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2010, 08:20 AM
  6. array lookup on userform?
    By humboldtguy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-03-2010, 09:32 PM
  7. [SOLVED] select variables ranges, copy to array, paste the array in new workbook
    By Mathew in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-01-2005, 05:06 AM

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