+ Reply to Thread
Results 1 to 3 of 3

Trying to transfer to worksheet in Cell "A1" vice "A2"

  1. #1
    Registered User
    Join Date
    12-02-2014
    Location
    Circleville, Ohio
    MS-Off Ver
    Office 360
    Posts
    10

    Trying to transfer to worksheet in Cell "A1" vice "A2"

    I have been out of the loop for a while; when transferring a selected item (Not Multiple) this coding starts in cell "A2" and I would like to have it start in cell "A1". Any help would be appreciated.

    For lngItemSelected = 0 To Me.lstAccountName.ListCount - 1
    If Me.lstAccountName.Selected(lngItemSelected) = True Then
    Worksheet.Range("A65536").End(xlUp)(2, 1) = Me.lstAccountName.List(lngItemSelected)
    Me.lstAccountName.Selected(lngItemSelected) = False
    End If
    Next lngItemSelected


    I tried changing the xlup to (1,1); it doesn't count down to the next row and overwrites in cell ("A1"). This is sure strange from working with COBOL for a few years.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Trying to transfer to worksheet in Cell "A1" vice "A2"

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Trying to transfer to worksheet in Cell "A1" vice "A2"

    Maybe:

    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. [SOLVED] VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2014, 02:11 PM
  2. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  3. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  4. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  5. Replies: 7
    Last Post: 05-13-2006, 05:02 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