+ Reply to Thread
Results 1 to 3 of 3

Macro to Autofill to Last Row using variable from InputBox - new to VBA

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    58

    Macro to Autofill to Last Row using variable from InputBox - new to VBA

    I have the following code the works fine but my problem is on "Date" and "Location Code", Autofill is counting up with each cell to the next date/number. How can I keep Date and Location code the same for all cells that this code autofills?
    Please Login or Register  to view this content.
    Last edited by MichaelGG1581; 02-17-2013 at 01:35 PM. Reason: Revised Problem

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Macro to Autofill to Last Row using variable from InputBox - new to VBA

    You wouldn't have to use Autofill. You could place the same value in the whole range at one time e.g.;
    Range("B1:B" & LR).Value = P

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Macro to Autofill to Last Row using variable from InputBox - new to VBA

    Also, vbOKCancel is not an argument for the input box. It is used with the MsgBox.

    Consider this...
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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