+ Reply to Thread
Results 1 to 2 of 2

Copying Data error from master sheet based on Range criteria

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    202

    Copying Data error from master sheet based on Range criteria

    Hello all,

    Am having a excel file in which I use to enter data in master sheet and save that in separate sheets based on Account Number.
    The individual account sheet has "S.No" in column A which has numbers from 1 to 100.
    When I try to save the data it is saving at the row which is after the s.no 100.
    I need to save the data from column B to C.

    I have the following code for checking the last row.

    TheLastRow = Worksheets(VN_Sheet).UsedRange.Rows.Count + 1

    The range should be changed to "b:c".

    Kindly help.
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copying Data error from master sheet based on Range criteria

    I was not able to find the code you are talking about.

    Just change the line from
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    If you want it to increment by 1, you can change it to
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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