+ Reply to Thread
Results 1 to 3 of 3

Trouble in taking a column from one sheet, modifying and pasting in another sheet

  1. #1
    Registered User
    Join Date
    02-18-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    26

    Trouble in taking a column from one sheet, modifying and pasting in another sheet

    Hi,

    I need to pick one column from sheet1. I need to perform a calculation based on it and then enter a value in another sheet. This is what i did.

    Please Login or Register  to view this content.
    Now i have several issues with the above code.
    One, for some reason i need to take one less than the actual column count i am getting for AidColNum and AnameColNum.

    Strangely, for BillColNum i need to take 3 less to make it refer to the correct column!!

    Can somebody please explain that to me??

    Also, when i am trying to find the last column number it always gives me one.
    Can somebody please help me!
    Last edited by VBA Noob; 02-24-2009 at 03:37 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Trouble in taking a column from one sheet, modifying and pasting in another sheet

    There's no data in the first row?! Attach a sample of your data please.

  3. #3
    Registered User
    Join Date
    02-18-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Trouble in taking a column from one sheet, modifying and pasting in another sheet

    Hi problem solved...
    i was assigning different column number to the required variable..
    and the had a syntax error in the formular1c1!!

+ 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