+ Reply to Thread
Results 1 to 9 of 9

Extending the range of an existing VBA based worksheet

  1. #1
    Registered User
    Join Date
    08-26-2008
    Location
    UK
    Posts
    3

    Extending the range of an existing VBA based worksheet

    I am a relative noob when it comes to VBA etc so please bear with me.

    We have a worksheet with four columns (and an embedded formula) reaching to Row 100 then the calculations stop. I have tried copying and pasting (doh) from the first 100 rows into the next 100 but that clearly doesnt work. How can I unearth the program/macro going on behind the scenes just to extend the range that it calculates from 100 to 500 for example ?

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486
    Hi,
    How is this macro activated?

  3. #3
    Registered User
    Join Date
    08-26-2008
    Location
    UK
    Posts
    3
    "How is this macro activated?"

    Thats a good question Dave. All I know is that the sheet has four columns. The first of which contains an employee name and the next three columns include their standard, overtime and double time pay rates.

    In rows 3 to 100 it is possible to enter a surname in column A, then three monetary amounts in columns B, C and D. These are then used to calculate the costs in a timesheet (held in another worksheet). What we need to do is continue the process so we can add new employees in to columns 101 to 200.

    However I have no idea where the macro or VB programming resides to activate these numbers. Is there a way to click on a cell and find out where its dependency lies ?

  4. #4
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387
    In Excel 2007, you'll have to go to the File Menu (round circle in top-left), and click Excel Options. Then check the Show Developer tab in the Ribbon. Now click on the Developer tab and there's a button called Macro's.

    In Previous Excel, go to the Tools Menu, then point to Macro, and click Macros.

    Once you get that far, copy and paste both the formula in the cells and the VBA code onto the forum. Don't forget to use [*code*] tags around it (without *'s).

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I suggest you attach the workbook after removing any sensitive information
    Hope that helps.

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

    Free DataBaseForm example

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486
    Quote Originally Posted by Amacdee View Post
    "How is this macro activated?"

    Thats a good question Dave. All I know is that the sheet has four columns. The first of which contains an employee name and the next three columns include their standard, overtime and double time pay rates.

    In rows 3 to 100 it is possible to enter a surname in column A, then three monetary amounts in columns B, C and D. These are then used to calculate the costs in a timesheet (held in another worksheet). What we need to do is continue the process so we can add new employees in to columns 101 to 200.

    However I have no idea where the macro or VB programming resides to activate these numbers. Is there a way to click on a cell and find out where its dependency lies ?
    Try right clicking the sheet tab and select "View Code", see if there is a code there

  7. #7
    Registered User
    Join Date
    08-26-2008
    Location
    UK
    Posts
    3
    I'm using Excel 2003 BTW and I really dont want this to become the War and Peace of threads as I have no wish to tie up valuable resources.

    However when I right click on the sheet tab and select "view code" it opens a VB screen with a box which would presumably show the macro inside. However the screen is blank so maybe if there are no macros its all VB programming instead ?

    Anyway I have zipped up the workbook and will send it to whoever is prepared to take up the challenge

    Many thanks

  8. #8
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387
    You can attach the workbook on here, so anyone can view it. Also, VBA coding and macro's are the same thing, so if it's blank then there's likely no programming code behind the scenes. We might just need to see the formula within the cells.

  9. #9
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486
    Quote Originally Posted by Amacdee View Post
    I'm using Excel 2003 BTW and I really dont want this to become the War and Peace of threads as I have no wish to tie up valuable resources.

    However when I right click on the sheet tab and select "view code" it opens a VB screen with a box which would presumably show the macro inside. However the screen is blank so maybe if there are no macros its all VB programming instead ?

    Anyway I have zipped up the workbook and will send it to whoever is prepared to take up the challenge

    Many thanks
    Hi Amacdee,
    Attach it to your next post....

+ 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. OpenText into an Existing Worksheet
    By Fredriksson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2014, 04:31 AM
  2. Copy range to worksheet - 1004 Run Time error
    By inky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2008, 07:39 AM
  3. Update a range to include newly inserted worksheet
    By Blitz7734 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-04-2008, 05:42 PM
  4. Deleting rows based on criteria in reference worksheet
    By eko in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-27-2008, 09:27 AM
  5. copy a range of data from one worksheet to another worksheet
    By mixel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-02-2007, 06:45 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