Closed Thread
Results 1 to 3 of 3

select a range

  1. #1
    Registered User
    Join Date
    11-14-2007
    Posts
    1

    select a range

    i'm extremely new to this VBA programming. in fact so new i'm only just working myself through my first book. "VBA for dummies"!!

    anyway i have a few specific reasons why i want to be able to adapt excel to start automating many of the repetative functions i continuously do on data.

    i want to add a column to every spread sheet (with my data on) copy another column then format it all the same.

    i can actually do this with what i have learnt so far. my problem is this:

    every workbook that comes to me has a different number of rows. therefore when i write the code i need to select a different number of rows as the range to format each time. could someone please point me in the right direction to just select a range that extends to just the number of rows with data in.

    does this make any sense to anyone ?!

    thank you for you help in advance


    mark

  2. #2
    Registered User
    Join Date
    08-16-2007
    Location
    Portsmouth, UK
    Posts
    86
    Cross posted at http://www.vbaexpress.com/forum/show...d=1#post123056. I have given you a bit of a start at the otehr thread. Please don't cross post, it means people can end up wasting time on problems that have already been solved, and is likely to result in your thread being closed.

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    divingdingo

    Please read forum rules

    Closing Thread

    RobynC
    Thanks for pointing out this thread is cross posted
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

Closed 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