Solved

When double click and moving to a new page have it automatically reset so that it won't display value.

Posted on 2016-10-28
12
23 Views
Last Modified: 2016-10-28
Good Morning Expert Exchange community, helpers and users.

---Want to see if someone can help me get this function that when i am in the main page and click on any Main Task for exp (COLLEGE)
     Have it automatically refresh, so that when moving to the (COLLEGE) page i don't see "VALUE" on the "J" column

---What i want to see on the "J" column is that when double click have it REFRESH the "J" column automatically.

when-clicking-on-Main-Task-have-the-.png
 After-when-clicking-on-Main-Task-hav.png
After-when-clicking-on-Main-Task-hav.pngAfter-when-clicking-on-Main-Task-hav.png
28978771.xlsm
0
Comment
Question by:Omar Hernandez
  • 6
  • 6
12 Comments
 
LVL 45

Expert Comment

by:Martin Liss
ID: 41864129
No matter what row I select, when I click on the red arrow I always get this.
????And nothing unusual happens if I click on a row when it's in that state.
0
 

Author Comment

by:Omar Hernandez
ID: 41864133
after you click the down arrow

click then on college
0
 
LVL 45

Expert Comment

by:Martin Liss
ID: 41864139
After clicking on College.
After clicking on College.
0
 
LVL 45

Expert Comment

by:Martin Liss
ID: 41864141
BTW, I've asked this before, but when the sheet is collapsed as above, how do you get back to showing all the rows?
0
 

Author Comment

by:Omar Hernandez
ID: 41864145
I meant to say, Double click on the cell that say "COLLEGE" (Double Click)
0
 

Author Comment

by:Omar Hernandez
ID: 41864159
In response to,

BTW, I've asked this before, but when the sheet is collapsed as above, how do you get back to showing all the rows?

i have it to be the object that looks likes the sun next to the down arrow, the file that you have is not updated, but i recorded macro call all
--on row 4, i click on cell with table, (shift,ctrl and L double time) and assign it to the object that looks like the sun.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 45

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 41864268
Replace you Worksheet_BeforeDoubleClick event with this
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)

Dim dccolumn As Integer
Dim dcvalue As String

dccolumn = ActiveCell.Column
dcvalue = ActiveCell.Value


If Application.Intersect(ActiveCell, [Headers]) Is Nothing Then

       Range("C2").Value = Target.Value
        Cancel = True
        
       If ActiveCell.Value <> "" Then
        
        ActiveSheet.ShowAllData
        
        ActiveSheet.ListObjects("Table134").Range.AutoFilter field:=5, Criteria1:=Selection.Text, Operator:=xlOr, Criteria2:="DIVIDER"
        '******* 28979574 Start *******
        refresh
        '******* 28979574 End *********
        
        Application.EnableEvents = True
        
        End If
    
    End If
    
End Sub

Open in new window

0
 

Author Comment

by:Omar Hernandez
ID: 41864277
Hey Marty when i make the changes, it works but it always brings me to the bottom of the sheet.

---May you let me know what to do so that when it finish doing what it should to always end up on the top of the page.
0
 
LVL 45

Expert Comment

by:Martin Liss
ID: 41864301
Add this right after line 21.

        ActiveWindow.ScrollRow = 1
0
 

Author Closing Comment

by:Omar Hernandez
ID: 41864305
Thanks Marty, this new feature works great, love it...
0
 
LVL 45

Expert Comment

by:Martin Liss
ID: 41864345
Currently if you click a row below the table like row 110, it turns yellow. I assume that that's OK, but if you then select any other row, range K:N for row 110 remains yellow. To fix that go to the Worksheet_SelectionChange event and change this

Range("a1:J" & "5000").Interior.ColorIndex = xlNone

to

Range("a1:" & strLastCol & "5000").Interior.ColorIndex = xlNone
0
 

Author Comment

by:Omar Hernandez
ID: 41864355
Thanks for your additional input, fix and better... thanks again Marty
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now