+ Reply to Thread
Results 1 to 4 of 4

Dynamic starting point

  1. #1
    Forum Contributor
    Join Date
    01-29-2015
    Location
    .
    MS-Off Ver
    2010
    Posts
    313

    Dynamic starting point

    Below is what my macro currently looks like. I use this when I download a report from SAP into Excel. After the report is download I wanted to create a macro that moved all the blank spaces on a row over to the left. My issue is that the starting point isnt always at 54. It changes every time I down load the report. How can I change this so that the macro starts running after a certain word. Specifically the word Components. The macro has already been ran and there is some personal editing I did to the sheet. Please see the attachment as well.



    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by scarlettw123; 01-29-2015 at 09:26 PM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamic starting point

    Perhaps something like this:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    01-29-2015
    Location
    .
    MS-Off Ver
    2010
    Posts
    313

    Re: Dynamic starting point

    It didnt work.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamic starting point

    Your question was "How to replace the 54 in the existing macro with a routine that can fine the row AFTER the word 'components'?"

    The tweak I offered you does exactly that. On your sheet it resolves the "Rw" variable to 58, which IS the row after the word "Components".

+ 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. Starting Point
    By JT_2111 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-10-2014, 02:45 PM
  2. Index/Match to find Starting Point of Average, Ending Point of Average Variable
    By tgentry in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2012, 01:04 AM
  3. Replies: 2
    Last Post: 06-27-2011, 10:47 PM
  4. Starting point
    By LouP in forum Excel General
    Replies: 1
    Last Post: 05-15-2008, 12:40 PM
  5. Replies: 3
    Last Post: 08-19-2005, 09:05 AM

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