+ Reply to Thread
Results 1 to 14 of 14

How can i get this code to start in cell A4

  1. #1
    Registered User
    Join Date
    05-13-2019
    Location
    Louisiana
    MS-Off Ver
    2016
    Posts
    76

    How can i get this code to start in cell A4

    I have the following code and it allows me to make a hyperlinked table of contents to my worksheets on my summary sheet. It excludes the first 6 sheets as planned but it starts the list at cell A7 on my summary sheet. I would like it to start at cell A4. Is that possible? and is it possible to add code that will add a "back to summary " hyperlink in cell A1 of each sheet that it list?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,605

    Re: How can i get this code to start in cell A4

    May be this
    Please Login or Register  to view this content.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    05-13-2019
    Location
    Louisiana
    MS-Off Ver
    2016
    Posts
    76

    Re: How can i get this code to start in cell A4

    Quote Originally Posted by kvsrinivasamurthy View Post
    May be this
    Please Login or Register  to view this content.
    When I try this I get no result. I can see the cursor flashing but then nothing displays

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,605

    Re: How can i get this code to start in cell A4

    Post a small sample file with sufficient explanation of what is the problem.

  5. #5
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: How can i get this code to start in cell A4

    For your first request, try

    Please Login or Register  to view this content.
    Last edited by maniacb; 02-06-2021 at 04:03 AM.

  6. #6
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: How can i get this code to start in cell A4

    For both request, try

    Please Login or Register  to view this content.
    Last edited by maniacb; 02-06-2021 at 04:19 AM.

  7. #7
    Registered User
    Join Date
    05-13-2019
    Location
    Louisiana
    MS-Off Ver
    2016
    Posts
    76

    Re: How can i get this code to start in cell A4

    Quote Originally Posted by maniacb View Post
    For both request, try

    Please Login or Register  to view this content.
    So this coded seems to work but I believe my workbook is causing an issue somehow and I cant figure out why. I have any sheet past the summary sheet coded to rename the tab based on 2 cells on the sheet. The summary sheet is not set up to do that but when I run your code it seems to apply this renaming to my summary sheet. Once the tab is renamed the code stops in error becasue of the tab name change. I cant figure out why this is happening. I attached my workbook if that helps. The refresh button at the top of the summary sheet runs your code. The Summary sheet may automatically rename to Plan QTY once the sheet is downloaded and opened.
    Last edited by allenayres83; 02-06-2021 at 02:40 PM.

  8. #8
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: How can i get this code to start in cell A4

    The name of the sheet was changed, so I re wrote the code to use the technical name, not the sheet name. Update this code and give it a whirl

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    05-13-2019
    Location
    Louisiana
    MS-Off Ver
    2016
    Posts
    76

    Re: How can i get this code to start in cell A4

    Quote Originally Posted by maniacb View Post
    The name of the sheet was changed, so I re wrote the code to use the technical name, not the sheet name. Update this code and give it a whirl

    Please Login or Register  to view this content.
    This code works but for some reason my sheet name is still changing. This sheet name is not supposed to change. It is always supposed to be "Summary". The other sheets are the ones that are supposed to change but its like when the hyperlink is created it takes that formatting and applies it to the "Summary" sheet to change the name. I cant figure out why this is happening. Any thoughts?

  10. #10
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: How can i get this code to start in cell A4

    Try it with disabling enableevents. I didn't realize you had code on the sheet module.

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    05-13-2019
    Location
    Louisiana
    MS-Off Ver
    2016
    Posts
    76

    Re: How can i get this code to start in cell A4

    Quote Originally Posted by maniacb View Post
    Try it with disabling enableevents. I didn't realize you had code on the sheet module.

    Please Login or Register  to view this content.
    Well this works but now it is causing another problem. I have some formulas set up in the summary sheet module. These formulas only calculate if there is something in column A otherwise it remains blank. So when I add in another worksheet, which may need to be done from time to time, I have to refresh my summary sheet by running the macro again. With this code when I do that it doesnt fill in the formulas for that new sheet. Could disabling events be causing these to not calculate?

  12. #12
    Registered User
    Join Date
    05-13-2019
    Location
    Louisiana
    MS-Off Ver
    2016
    Posts
    76

    Re: How can i get this code to start in cell A4

    Well maybe its not the code after all. I will have to look into my summary sheet module later. Looks like my code for the formulas may be just stopping at line 67 instead of continuing on if there is something in column A

  13. #13
    Registered User
    Join Date
    05-13-2019
    Location
    Louisiana
    MS-Off Ver
    2016
    Posts
    76

    Re: How can i get this code to start in cell A4

    Quote Originally Posted by maniacb View Post
    Try it with disabling enableevents. I didn't realize you had code on the sheet module.

    Please Login or Register  to view this content.
    I was able to play around with the code a little bit today and do some testing. The code above was causing some erratic results. If I ran the code again to refresh the list after adding additional sheets, my code that is supposed to populate formulas in columns B:G if there is data in column A didnt work. Any ideas why this is?

  14. #14
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: How can i get this code to start in cell A4

    One idea is to run a separate module to update the summary sheet after the new code is run. I created and tested the module below.

    Please Login or Register  to view this content.
    Note: you don't have to quote previous code already in the thread.

+ 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. (SOLVED) InputBox vba code to start in cell A1
    By Stona in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-16-2020, 08:08 AM
  2. [SOLVED] how to change this code to start from a specific cell and to last row
    By Chaos00 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 07-12-2019, 10:18 AM
  3. start at certain cell all the way down for code execution
    By StevenDerp in forum Excel General
    Replies: 4
    Last Post: 10-31-2017, 05:47 PM
  4. Code to recgonize non-numeric "Left"/start of cell in cells of dynamic column
    By horrockc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2016, 10:19 AM
  5. start code in selected column/Cell
    By FDibbins in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-12-2015, 07:35 PM
  6. [SOLVED] Code to access active cell and start a new line
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-01-2013, 02:16 PM
  7. Code to check if cell value start with int.
    By Rob* in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-23-2012, 07:56 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