+ Reply to Thread
Results 1 to 3 of 3

Userform to add data to active cell offset

  1. #1
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Userform to add data to active cell offset

    I am trying to get my userform to add data to an active cell offset. Im getting run time error 1004 with the following code:

    With Sheets("ReturnData")
    CR = ActiveCell.Offset(-1, -1)

    .Cells(CR, 1).Value = ItemDescription.Value

    End With

    What am I doing wrong?

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Userform to add data to active cell offset

    If you ractive sheet is A1, you can not go to the left of it, nor you can go above it, so it all depends where is the active cell is in the grid.

  3. #3
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Userform to add data to active cell offset

    If you have defined CR as a range, then perhaps 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)

Similar Threads

  1. VBA Issue: Offset from the an active cell instead of a different cell each time
    By Karthic Kanthi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-20-2013, 05:37 AM
  2. [SOLVED] Imported Data; Loop through row until blank; offset each active cell to catergorize time
    By jerbaldw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2012, 11:15 AM
  3. Running a different Active.Cell Offset.....
    By Kirtman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2012, 05:52 AM
  4. Userform insert data on the last row even when autofilter is active
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-29-2009, 02:24 PM
  5. Get value from another cell using Offset and active cell
    By Rick_Stanich in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-11-2009, 04:52 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