+ Reply to Thread
Results 1 to 40 of 40

Getting to the next (another) balnk cell by vutton click

  1. #1
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Getting to the next (another) balnk cell by vutton click

    hi there,

    I have column "AW" of data from AW6 downward, that grows, albeit with scattered data, ie. some cells in between will be blank.

    So, i'm just trying to make a Button to get the cursor to go to & sel the next subsequent blank cell down the column each time the button is clicked once, ie. with ea click the cell goes to the NEXT blank cell downwards. Note that on selecting ea blank, i would not necessarily type any data into the cell, meaning i may leave the first found blank as blank, but i still need to click the button to continue going down to another blank..

    here's my attempt & seems it does not work:


    Sub Sel_subseq_blankcell()

    With Range("AW5" & Rows.Count)
    .End(xlUp).Offset(1).Select
    ActiveWindow.SmallScroll ToLeft:=8
    End With

    End Sub




    Can anyone offer advice or help ?

    cheers
    Stewart

  2. #2
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Getting to the next (another) balnk cell by vutton click

    Maybe try something like this :
    Please Login or Register  to view this content.
    You need to have the active cell in the regarded column, wherever row.
    Last edited by karmapala; 06-02-2020 at 11:20 AM.

  3. #3
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Getting to the next (another) balnk cell by vutton click

    Try...
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    hi Karmapala & Dangelor,

    thanks for your codes, I want to try them but I see you don't specify the start cell, so where in your code do i specify the start cell AW5 and column ? Otherwise, how does Excel know where to start looking ? my file has many other columns although i dont need search there . I need the macro to start at the active cell from AW5 every time I start the workbook, can you show me how your code should be modified?

    Stewart
    Last edited by MannStewart; 06-02-2020 at 11:43 AM.

  5. #5
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Getting to the next (another) balnk cell by vutton click

    You start with any cell selected in that column.

  6. #6
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Getting to the next (another) balnk cell by vutton click

    Quote Originally Posted by MannStewart View Post
    hi Karmapala & Dangelor,

    thanks for your codes, I want to try them but I see you don't specify the start cell, so where in your code do i specify the start cell AW5 and column ? Otherwise, how does Excel know where to start looking ? my file has many other columns although i dont need search there .

    Stewart
    Hi MannStewart, that's why I put a note :
    You need to have the active cell in the regarded column, wherever row.


    btw, what do you mean with this ?
    the start cell AW5 and column
    I thought cell AW5 ---> the column is AW and the row number is 5 ?

    Anyway, assuming that cell AW5 is the column is AW and the row number is 5, then the code :

    Please Login or Register  to view this content.
    Last edited by karmapala; 06-02-2020 at 11:47 AM.

  7. #7
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    hi,

    I need the cell to start its search journey from cell AW5, because sometimes AW6 may be empty, or it may be filled, but AW5 is definitely empty and not meant for any data

    I hope u see what I meant ?

  8. #8
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Getting to the next (another) balnk cell by vutton click

    Quote Originally Posted by MannStewart View Post
    hi,

    I need the cell to start its search journey from cell AW5, because sometimes AW6 may be empty, or it may be filled, but AW5 is definitely empty and not meant for any data

    I hope u see what I meant ?
    Then try to add this line:
    Please Login or Register  to view this content.
    right below the "Sub test()" line.

    Please see my edited code on #6

    I need the cell to start its search journey from cell AW5
    You can't have the code to have the starting cell selected without a condition.
    Because if there is no condition, then each time you run the macro - the code keep "coming back" to cell AW5.
    So the added line above is the condition IF the active cell is already in column AW, then do nothing.
    IF the active cell is not in column AW then start cell is cell AW5.
    Last edited by karmapala; 06-02-2020 at 12:02 PM.

  9. #9
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    hi Karmapala,

    when i do this, your code goes to the 1st blank, but on another click it does not go to the 2nd blank or another blank anymore, it stays on 1st blank and does not move.. Why..?

    Please Login or Register  to view this content.
    Sub test()
    Range("AW5").Select
    If ActiveCell.Offset(1, 0).Value = "" Then
    ActiveCell.Offset(1, 0).Activate
    Else
    Do
    ActiveCell.End(xlDown).Activate
    If ActiveCell.Offset(1, 0).Value = "" Then ActiveCell.Offset(1, 0).Activate
    Loop Until ActiveCell.Value = ""
    End If
    End Sub
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    hi Dangelor,

    i tried with your code like below, your code will go to the 1st blank, but it stays there and any more clicks nothing happens anymore, it just stays on 1st blank and does not move.. where did I do wrong?
    Please Login or Register  to view this content.
    Sub test()
    Range("AW5").Select
    Do Until ActiveCell = vbNullString
    ActiveCell.Offset(1).Activate
    Loop
    End Sub
    Please Login or Register  to view this content.

  11. #11
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Getting to the next (another) balnk cell by vutton click

    MannStewart, please read the forum rules, in particular #2 about using code tags.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  12. #12
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Getting to the next (another) balnk cell by vutton click

    Quote Originally Posted by MannStewart View Post
    hi Karmapala,

    when i do this, your code goes to the 1st blank, but on another click it does not go to the 2nd blank or another blank anymore, it stays on 1st blank and does not move.. Why..?

    Please Login or Register  to view this content.
    As I mentioned before in my post, the code line above is NO NO .
    With the code line like above, each time you start the macro, it will coming back to cell AW5,
    which then we can't expect that it will go to the next blank cell from the last active cell.

    Please read my post #6 and #8, and try this :

    Please Login or Register  to view this content.
    And please don't alter the code back to
    Please Login or Register  to view this content.


    This code assumes that you focus to do only "searching" where is the blank cell in column AW.
    So, you keep on hitting the button, without click any cell here and there, especially click cell outside column AW.
    If you do not focus, which means after you click the button - then you do something else by clicking another cell outside column AW,
    then the code will coming back to cell AW5.

    If you do not focus, which menans after you click the button - then you click another cell within column AW
    then the code will start from the cell you just click.

    The code is not remembering "where is the last active cell" in column AW if you wondering around click another cell here and there after run the macro.
    Last edited by karmapala; 06-02-2020 at 12:08 PM.

  13. #13
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Getting to the next (another) balnk cell by vutton click

    You may want to better explain... the code provided looks for the first blank below AW5. Is your expectation that it goes to the blank cell BELOW the "current" cell? If you are in column AW when this runs, it will select the NEXT blank below. if you are not in AW then it should stop at the first blank below AW5.

    Please Login or Register  to view this content.

  14. #14
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Getting to the next (another) balnk cell by vutton click

    My error. Try...
    Please Login or Register  to view this content.

  15. #15
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    sorry Arkadi

    i tried i really did but i could not see elsewhere beyond those 3 buttons which i tried [CODE][CODE] and also [HTML][HTML] and it cant be . Which symbols to use for wrapping my code?

  16. #16
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    Your code Worked now, a thousand appreciative thanks !

  17. #17
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Getting to the next (another) balnk cell by vutton click

    If you highlight code you type in, then clicking the # button will put code tags around your code... or lead it with [CODE] and then at the end [/CODE]

  18. #18
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    so, that's how .. alright i got it & appreciate your guide.

    have a beautiful day
    Stewart

  19. #19
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Getting to the next (another) balnk cell by vutton click

    Thanks for the feedback, and marking the thread as solved.

  20. #20
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    hi Karmapala

    there's just 1 more column that I need to do the same thing, but just a little bit complicated to me. I tried to modify & apply the same code you offered for selecting next blank in this column as follows, but failing miserably, the cursor dives straight down to bottom abyss of the page and ERROR msg pops up. The target column is BP, like previous problem it also needs to start from BP5, but i need to sel the next blank down the column, AND meet the criteria that the column BO to its LEFT is a numerical value & not a text string. The column BO:BO contains data that can be positive numbers AND names of people, and has intermittent blanks as well like BP.

    I need to click the new button to sel the next blank which corresponds to a blank in BP, and only if the cell to the left in BO is not blank and is a numerical value (not text) only.


    Please Login or Register  to view this content.


    Also, how can I add an ending command(s) to both codes to cease going further the searching if the bottom row has been reached, such as a msgbox & go back to the top. What I mean is, further blanks are just complete blank rows below the bottom of the worksheet body, that is the last filled row of column A:A. The body grows and according to A:A which is always filled regardless if AW:AW and BP:BP are blank or not. I think the last command should be to use column A:A to determine when to cease further clicks, but i do not know how to add the instruction to the codes.


    Awaiting Help

    Stewart
    Last edited by MannStewart; 06-03-2020 at 01:59 AM.

  21. #21
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    Quote Originally Posted by Arkadi View Post
    You may want to better explain... the code provided looks for the first blank below AW5. Is your expectation that it goes to the blank cell BELOW the "current" cell? If you are in column AW when this runs, it will select the NEXT blank below. if you are not in AW then it should stop at the first blank below AW5.

    Please Login or Register  to view this content.


    hi Arkadi
    Your code is the one that really works for my section-1, I'm really grateful to you for that. I wonder if I can PM you to help me with section-2? or if you can kindly look at my unresolved post whcih i made today for Section-2, i attached a sample workbook there too?

    Stewart

  22. #22
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Getting to the next (another) balnk cell by vutton click

    Thought this thread closed. For your Column BP...
    Please Login or Register  to view this content.

  23. #23
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Getting to the next (another) balnk cell by vutton click

    Hi MannStewart,

    Please try this
    Please Login or Register  to view this content.
    Also, how can I add an ending command(s) to both codes to cease going further the searching if the bottom row has been reached
    The message box will appear at the time the row in column BP = or more than the last row with value in column BO.
    Last edited by karmapala; 06-05-2020 at 12:32 PM.

  24. #24
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    hi Karmapala

    this code is perfect for section-2. Except, can you suggest how to add some command so that the column-68 is always 1 column from the RIGHT side of the screen? So that the screen can always display column AV also with BP?

    i'll try to modify this code for column-49 too Your previous did not work as it stopped after 2 blanks for some unknown reason.


    Stewart
    Last edited by MannStewart; 06-06-2020 at 02:59 AM.

  25. #25
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Getting to the next (another) balnk cell by vutton click

    Quote Originally Posted by MannStewart View Post
    hi Karmapala
    the screen always goes to & displays column AV & BP?
    Sorry, I don't really understand what you mean.

    Did you mean that when running the macro I put in post #23,
    when the code hit the expected result, it display you to that cell in column BP?
    If that's you mean, it does bring/display you that cell although the row is exceed the window :
    2020-06-06_14-36-53.gif

    My actual data goes very deep down to rows approaching 10,000
    and the screen needs to show the active cell
    As you seen in the image above,
    the screen does show the expected cell result.

    2. can you modify the previous code for column-49?
    That did not work as it stopped after 2 blanks for some unknown reason
    2020-06-06_14-50-52.gif

    I'm sorry I don't quite understand "it stopped after 2 blanks",
    because as seen in the image above, the macro for column-49 doesn't stop after 2 blanks ?

    the screen always goes to & displays column AV & BP
    When running the sub for column 49 or when running the sub for column 68 ?

    I think it would be better if you can attach a sample workbook.
    Doesn't have to be all what's in the sheet.
    Maybe you can copy just column AW, BO and BP for about 300 rows ?
    Last edited by karmapala; 06-06-2020 at 03:01 AM.

  26. #26
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    hi Karmapala

    i've discarded that code it just wouldn't work after finding the first blank, i do not know why. But today's code you provided WORKS totally, except for the issue i described in above 1st reply to you today. If you must know, i will try to re-apply the old code to check again and let you know

    Stewart

  27. #27
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Getting to the next (another) balnk cell by vutton click

    Quote Originally Posted by MannStewart View Post
    hi Karmapala

    this code is perfect for section-2. Except, can you suggest how to add some command
    so that the column-68 is always 1 column from the RIGHT side of the screen?
    So that the screen can always display column AV also with BP?
    Oh oke, with your edited question now I think I understand what you mean.
    What you want is that when running the sub for column BO,
    you need it to scroll automatically to the LEFT,
    so when the cell stop in any row in column BP,
    you can still see in your display screen column AV to column BP.

    Am I correct to get what you mean ?

    Example :
    The image below is the screen on the monitor when running macro for column BP:
    EXCEL_2020-06-06_15-16-20.png

    In the screen of the monitor, we can't see column AV.
    So, what you want the screen look like when running macro for column BP like image below :
    EXCEL_2020-06-06_15-16-50.png

    Something like that ?

  28. #28
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    hi Karmapala

    I have the sample wrkbook with yoru original code here but can you tell me how to attach the workbook directly to you? i'm searching but cant seem to see the attach button for Reply

    Stewart

  29. #29
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    , yes ..! can that be done in vba? For sec-1, require display to at least show activerow from cell AK all the way to AW, for sec-2 require display to at least show activerow from cell BD all the way to BQ that would be safe minimum area to view all necessary data i need for evaluating in our daily work routine. best is active row in middle equidistant from top to bottom of the screen

    Stewart

  30. #30
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Getting to the next (another) balnk cell by vutton click

    Quote Originally Posted by MannStewart View Post
    I have the sample wrkbook with yoru original code here
    but can you tell me how to attach the workbook directly to you?
    I think there is no option to send a file directly to another user, MannStewart.

    You can attach the sample workbook in your own post.

    yes ..! can that be done in vba?
    For the time being, what I can do so far is zooming the cell to fit the whole screen.

    Something like this on macro for column BP
    Please Login or Register  to view this content.
    Assumes that the expected cell row (where on the left of it has number) is row 40,
    the macro will select range AV35 to BP45, then zoom the selection to fit your screen.
    Then the user will always see column AV to column BP.
    I haven't tried that if the bolded line is put at the beginning of the code,
    so it doesn't need to always zooming each time it meets the criteria
    because it quite difficult for me to test without real data.


    for sec-2 require display to at least show activerow from cell BD all the way to BQ
    You can change the code above as your need. But don't be surprised if the cells getting bigger .

    For sec-1, require display to at least show activerow from cell AK all the way to AW,
    Using my code in post # then it become something like this :

    Please Login or Register  to view this content.
    Not tested.

  31. #31
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    hi Karmapala

    i tried your zoom example & idea, but um, i guess not the best way it makes your code slow down in execution (lag) and the activecell gets moved to a corner after zoom, i mean the whole screen looks and macro execution feels worse-off than before. Anyway, appreciate your codes, i'll continue to try to look for a solution for this

    Stewart

  32. #32
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    hi Karmapala

    i came up with an alternative (compromised) way, ie. use col-63 instead of 68 as the x-column, in this column i can use BK7 instead of BP5 for starting cell. With this alternative column, I can still view from column BD to BP on each click screen result. But, my code will not search to include the last bottom blank, although there is 1 more last blank below. Can you give me a pointer & help me check see what's wrong with my code?

    Please Login or Register  to view this content.

    Stewart
    Last edited by MannStewart; 06-06-2020 at 05:35 AM.

  33. #33
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Getting to the next (another) balnk cell by vutton click

    Quote Originally Posted by MannStewart View Post
    hi Karmapala

    i came up with an alternative (compromised) way, ie. use col-63 instead of 68 as the x-column,
    in this column i can use BK7 instead of BP5 for starting cell.
    With this alternative column, I can still view from column BD to BP on each click screen result.
    But, my code will not search to include the last bottom blank, although there is 1 more last blank below.
    Can you give me a pointer & help me check see what's wrong with my code?
    The below line that you used after you modified the code :
    Please Login or Register  to view this content.
    Then it seems that the "rule" is not like before anymore, but change to like this :
    While the code is checking column BK row n ...
    If column BP row n is blank and column BO row n value is number
    then select this column BK row n

    Am I correct ?
    If yes I am correct, then the following line
    Please Login or Register  to view this content.
    it's telling to loop in column BK to each row
    until the BK row number = or more than the last row number with value in column BJ

    Now, maybe the last row number with value of column BJ is shorter than the last row number with value of column BO ?
    That's why :
    my code will not search to include the last bottom blank
    Last edited by karmapala; 06-06-2020 at 08:51 AM.

  34. #34
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Getting to the next (another) balnk cell by vutton click

    MannStewart, you are pursuing this in 2 threads which means we are duplicating our efforts, shall I just stop working on it for now?

  35. #35
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    hi Arkadi

    yes, you are right but i didn't mean to pursue in both threads, which was why I had forced myself to mark this as "Resolved" before I posted in the new thread, as i got no reply from anyone in this thread for 2 days.

    Thanks for your code and Help with much appreciation Arkadi, i'll close both as resolved shortly after i get around this.

    Stewart

  36. #36
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    hi Karmapala

    ok, based on your direction, i modified & i think i got it like this:

    Please Login or Register  to view this content.
    Thanks very much for your Help.
    Stewart
    Last edited by MannStewart; 06-06-2020 at 11:14 PM.

  37. #37
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Getting to the next (another) balnk cell by vutton click

    Don’t mark the other as solved until everything is truly solved

  38. #38
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Getting to the next (another) balnk cell by vutton click

    Quote Originally Posted by MannStewart View Post
    hi Karmapala

    yes, the last final row of BK and BP is blank, but BO has data,
    so, if i'm telling Excel to loop in BK,
    how do i modify the instruction to tell it to loop in BO or column-50
    which always has data until final bottom row?
    Then the comparison needs to the column BO, MannStewart.

    i tried this, it didn't work:

    Please Login or Register  to view this content.
    Please have a look at the bold code, MannStewart.
    The "original" code, the value of col is 68 (column BP).
    Then "col minus 1" is 67 (column BO).

    Later when the col value changed to 64 (column BK)
    then "col minus 1" is 63 (column BJ).
    So it still won't work the same as the "original" code.

    Quote Originally Posted by MannStewart View Post
    hi Karmapala

    ok, based on your direction, i modified & i think i got it like this:

    Please Login or Register  to view this content.
    I don't quite understand how the code line above works as expected.
    Because the "Not IsEmpty" cell to check from the code above is column BM, since the column of x is BK.

    IF the "original" code line is :
    Please Login or Register  to view this content.
    since later on you modified column x = 63 (column BK)
    then I think the other line should becomes :
    Please Login or Register  to view this content.

    Anyway, please forget about your modified code.

    Just now I looked in the internet and found a new code instruction
    which it seems if I add it in the beginning of the "original" code,
    the result on the screen is maybe that you expect it :

    Please Login or Register  to view this content.
    The first line of the sub above is telling something like this :
    "scroll column AW to the most left of the screen".

    I don't know how is your screen,
    but in my screen when column AW is at the most left on my screen,
    the most right column on my screen is column BP.

    Via F8 in VBA editor, please playing around with the value on the first line of the code,
    until you find what you see on your screen fits to a state that you expected.
    Last edited by karmapala; 06-06-2020 at 11:59 PM.

  39. #39
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: Getting to the next (another) balnk cell by vutton click

    Hi Karmapala

    This is good it's solved the problem, working very well now.

    Thank you very much

    Stewart

  40. #40
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Getting to the next (another) balnk cell by vutton click

    You're welcome, MannStewart.
    Glad I can help .

+ 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. VBA to copy first to last row stopping at first balnk row...
    By Louis85 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-20-2015, 05:02 AM
  2. [SOLVED] removing the balnk data in the pivot
    By kachuen2006 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-11-2013, 06:29 AM
  3. End Macro when balnk cell
    By paconovellino in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2013, 04:06 PM
  4. How to return a balnk cell if the result of an = is a minus
    By jonboy0766 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2013, 01:22 PM
  5. Macro to check if range of cells values are balnk...then do something
    By jayers in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-29-2013, 06:27 AM
  6. Issue with balnk cells.....
    By garethjohn in forum Excel General
    Replies: 7
    Last Post: 08-18-2011, 05:35 AM
  7. Imported data with balnk rows
    By gcastilleja in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-16-2010, 08:10 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