+ Reply to Thread
Results 1 to 2 of 2

Column Issue with Range

  1. #1
    Registered User
    Join Date
    03-07-2007
    Posts
    19

    Column Issue with Range

    Thanks in advance for any help.

    I'm doing some importing of excel data from one file to another. That works fine. My problem is that when I get the new data in I have to do some stuff to the data to clean it up. I first declare the variables below and set them
    Please Login or Register  to view this content.
    This tells me the last column and row with data. I now have to select the column after iLastCol because I have to put a formula into every row in that column. Currently iLastCol = 18 which lands on letter R.

    I don't know how to set the Range proptery to allow to select column iLastCol + 1 down to row iLastRow?


    Prior to me switching to using column numbers the VBA code looked like this

    Please Login or Register  to view this content.
    Thank You for your help
    Last edited by royUK; 05-12-2008 at 01:35 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    jerry8989

    Read the Forum Rules & use Code tags in future.

    I'm not sure why you are making the variables as Public and I would use Long insttead of Integer, in case the variables exceed the Integer's capacity.
    Please Login or Register  to view this content.
    Last edited by royUK; 05-12-2008 at 01:44 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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