+ Reply to Thread
Results 1 to 8 of 8

Input box copy range not workin

  1. #1
    Forum Contributor
    Join Date
    12-23-2007
    Location
    chennai india
    MS-Off Ver
    2010
    Posts
    141

    Input box copy range not workin

    hi,

    I am new to vba. I want inputbox to ask a range and then input box ask formula which should be copied in the rang selected. I wrote a small code but it is not working. As i got struck in range itself , i never wrote input box for formula. your help will be great for me.
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: Input box copy range not workin

    Maybe lastrow should be a string

    Please Login or Register  to view this content.
    Or you may have to "set lastrow="
    but then it would just be
    `with lastrow`

  3. #3
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,153

    Re: Input box copy range not workin

    But only for this formula (VLookup) ? Because it is unrealistic for everyone.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: Input box copy range not workin

    Since you can only select a cell in the active sheet, there would be no reason for any "with" statements

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,388

    Re: Input box copy range not workin

    try this
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,153

    Re: Input box copy range not workin

    Aanother clone:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-23-2007
    Location
    chennai india
    MS-Off Ver
    2010
    Posts
    141

    Re: Input box copy range not workin

    I am greatful to daboho and porucha vevrku. porucha vevrku was very useful and very detailed.

  8. #8
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,388

    Re: Input box copy range not workin

    Mark as solved

+ 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] VLOOKUP not workin
    By morerockin in forum Excel General
    Replies: 10
    Last Post: 07-17-2017, 07:21 AM
  2. Copy and pasting a range using autofilter and input box
    By sx200n in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2015, 08:42 AM
  3. Formulas not workin
    By lensol in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2013, 10:11 AM
  4. User Input to set last column in range to copy
    By Zimbo in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-15-2009, 04:00 AM
  5. [SOLVED] use an input box to select a range and copy to another worksheet
    By Paul in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-11-2006, 01:30 PM
  6. use an input box to select a range and copy to another worksheet
    By Paul in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-03-2006, 11:50 AM
  7. Input box Copy Paste Range
    By JavyD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-15-2005, 06:50 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