+ Reply to Thread
Results 1 to 7 of 7

Paste value (Transpose) to specific Range in Cells via InputBox

  1. #1
    Forum Contributor
    Join Date
    08-17-2013
    Location
    Asia
    MS-Off Ver
    Excel 2021
    Posts
    271

    Paste value (Transpose) to specific Range in Cells via InputBox

    Hello Seniors,

    I have following code which is bit semi-auto

    Please Login or Register  to view this content.
    '

    Since new data would keep coming, i want Input Box be used to allow User to select range (Say B7 here) where copied data could be pasted as values using Transpose. How to do it?

    If, above is not doable, Is there a way whereby copied data values from Source worksheet could be pasted [transpose - from column to rows] in last used range of row in Column B of Targetworksheet .

    Thanks
    Last edited by analystbank; 11-19-2020 at 07:47 AM.

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Paste value (Transpose) to specific Range in Cells via InputBox

    Try to paste to the last item in Column B

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Paste value (Transpose) to specific Range in Cells via InputBox

    And for your option of entering a range

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    08-17-2013
    Location
    Asia
    MS-Off Ver
    Excel 2021
    Posts
    271

    Re: Paste value (Transpose) to specific Range in Cells via InputBox

    Quote Originally Posted by maniacb View Post
    And for your option of entering a range

    Please Login or Register  to view this content.
    This does not allow to select range through Mouse, Have to enter cell reference manually inside Input Box , but worked.

    Worked like a charm for solution suggested in #2 above.

    Many Thanks
    Last edited by analystbank; 11-20-2020 at 02:46 AM.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Paste value (Transpose) to specific Range in Cells via InputBox

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-01-2020
    Location
    Poland
    MS-Off Ver
    2002 2003 2007 2010
    Posts
    9

    Re: Paste value (Transpose) to specific Range in Cells via InputBox

    Paste value (Transpose) to specific Range in Cells via InputBox
    Quote Originally Posted by analystbank View Post
    This does not allow to select range through Mouse, Have to enter cell reference manually inside Input Box , ....
    Hello is analystbank
    Maybe we is not quite clear then what you want.

    For your info only is:
    maniacb, he is Input Box function ( https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/inputbox-function )he did it… any you to enter cell reference manually inside Input Box
    ( But also important to note he is with formats )

    Jindon he is dided for coding only values , ( not format is copied ). Also he is dided Application InputBox method ( https://docs.microsoft.com/en-us/office/vba/api/excel.application.inputbox ) - It is different one isn’t it – You can choose. Jindon dided chose Type:=8 last argument for then you select the range and it is put in automatically you don’t have to enter cell reference manually inside Input Box

    Other info is from me:
    _ Microsoft Application.InputBox method it does have some Bugs, so people often prefer not to use it
    _ Transpose function ( jindon he did use it ) it does have some Bugs, so people often prefer not to use it




    Just some ideas I do have:


    _1 idea
    Simple macro is like mixture of maniacb and jindon. Use inputBox function like maniacb and values only are transposed like jiundon but not quite the same is, because I don’t like to use Transpose – I can use Index instead I did ( https://www.excelforum.com/excel-programming-vba-macros/1328703-copy-1-dim-array-to-and-2-dim-array.html#post5410028 )
    Please Login or Register  to view this content.
    Code it is in Book1.xls – I did upload its attached Managed




    _2 idea
    This is maybe a bit complicated, but just idea is
    Only a Pop up message box will tell you what to do. But you ignore it. Then select the cell in worksheet “Target”

    This is macros you must have, and you run Sub Jewano2()
    In Normal Code module
    Please Login or Register  to view this content.
    In ThisWorkbook code module
    Please Login or Register  to view this content.
    Coding they is in Book1.xls – I did upload its attached Managed also



    _2 idea
    This is maybe very simple for you
    All is in workbook zeszyt1.xls
    You only have to select cell in worksheet “Target”
    In ThisWorkbook code module
    Please Login or Register  to view this content.



    Jewano






    Ref
    https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/inputbox-function
    https://docs.microsoft.com/en-us/office/vba/api/excel.application.inputbox
    https://excelfox.com/forum/showthread.php/2227-VBA-Input-Pop-up-Boxes-Application-InputBox-Method-versus-VBA-InputBox-Function
    https://www.excelforum.com/excel-programming-vba-macros/1328703-copy-1-dim-array-to-and-2-dim-array.html#post5410028
    Attached Files Attached Files
    Last edited by Jewano; 11-23-2020 at 07:27 AM.

  7. #7
    Forum Contributor
    Join Date
    08-17-2013
    Location
    Asia
    MS-Off Ver
    Excel 2021
    Posts
    271

    Re: Paste value (Transpose) to specific Range in Cells via InputBox

    Many thanks, Seniors, was off the internet for some reason. Currently, I was maing use of solution given in #3 and was feeding cell reference manually (not through mouse). This thread is soved, and i will re-look at other alternate solutions. Very kind of you, all.

+ 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] copy paste transpose data range into merged cells
    By Robn02 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-23-2017, 10:27 AM
  2. Replies: 3
    Last Post: 11-18-2015, 03:31 PM
  3. [SOLVED] Copy range and paste using inputbox
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2014, 12:21 AM
  4. Replies: 1
    Last Post: 03-15-2014, 05:44 AM
  5. Paste a range X number of times based on InputBox Value divided by 4
    By kierstin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:22 AM
  6. Transpose & Paste data based on a count of cells from a range
    By sugondog in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-28-2009, 01:37 PM
  7. Delete specific rows, creating range and criteria using inputbox
    By gmccray in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2008, 02:00 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