-
DennisK50
AskWoody LoungerI did not explain myself well… here is my code…
Code:Private Sub Workbook_Open() AddIns("Analysis ToolPak").Installed = True AddIns("Analysis ToolPak - VBA").Installed = True Dim cmbBar As CommandBar Dim cmbControl As CommandBarControl Set cmbBar = Application.CommandBars("Worksheet Menu Bar") Set cmbControl = cmbBar.Controls.Add(Type:=msoControlPopup, temporary:=True) 'adds a menu item to the Menu Bar With cmbControl .Caption = "&Sort" 'names the menu item With .Controls.Add(Type:=msoControlButton) 'adds a dropdown button to the menu item .Caption = "Sort 1" 'adds a description to the menu item .OnAction = "SortFunc_Prog" 'runs the specified macro .FaceId = 1098 'assigns an icon to the dropdown End With End With End Sub
Again… what is my code to make sure that the “Add-Ins” tab displays. TIA.
DennisK
-
DennisK50
AskWoody LoungerThanx so much to both of you… I used Zeddy’s approach because I really didn’t need to display a message about it being deleted. Just that it was gone and as such… recreated the button… FYI..
Code:Private Sub chkShape7() On Error Resume Next zShapeID = ActiveSheet.Shapes("Button 7").ID If IsEmpty(zShapeID) Then CreateButton7 On Error GoTo 0 End Sub
Code:Sub CreateButton7() ActiveSheet.Buttons.Add(143, 10, 143, 40).Select Selection.Name = "Button 7" Selection.OnAction = "PrintMenu" ActiveSheet.Shapes("Button 7").Select Selection.Characters.Text = "Print Menu" ActiveSheet.Shapes.Range(Array("Button 7")).Select With Selection.Font .Name = "Times New Roman" .Size = 18 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ColorIndex = xlAutomatic End With Range("B7").Select End Sub
DennisK
-
DennisK50
AskWoody LoungerApril 4, 2015 at 7:20 am in reply to: Non Repeating Output List from Excel Equal to Input list #1498664Thanks so much for your input… was hoping to avoid vba as the person I am doing this for wants it as simple as possible but will take a look at it.
-
DennisK50
AskWoody LoungerThanx so much for the input… that did not solve the problem either… guess I will have to live with it and use google as my work around.
-
DennisK50
AskWoody LoungerThat was not checked BUT… in planning for the future, I had placed “Option Explicit” in the code. Once I commented that out all seems to work just fine. Thanx SO much for pointing me in the right direction.
Dennis
-
DennisK50
AskWoody LoungerThanx so much but this is not an option… IT dept won’t allow permissions to do that. I did find a possible workaround over at Ozgrid that I will try.
-
DennisK50
AskWoody LoungerTHAT’S IT!!! Thanks so much.
-
DennisK50
AskWoody LoungerOK… will upload a file called 0test0. If you look on the tab called “Data” at cell D18 you will see that the cell if formatted to display 5 digits… the actual value in the cell is 0 (zero). If you then look at the tab called “LinkedSheet” at cell D14 you will see that the cell is blank. I did change the formula to try to look at the way that Alan Wade suggested but to no success.
-
DennisK50
AskWoody LoungerTry this (adjust the range as necessary)
=SUMPRODUCT(–(MOD(COLUMN(A1:H1),2)=0),–(A1:H1″”))
This does the trick. Thanx so much
-
DennisK50
AskWoody LoungerJan…
Thanx so much… worked like a dream.
Dennis
-
DennisK50
AskWoody LoungerLegare…
Thanx so much for your input. However… the code DOES work. It forces any lower case entry to capitals throughout the range. Maybe it shouldn’t work…but it does. If a person makes an entry in a cell and hits Enter… the entry is forced to upper case. If a person makes an entry and just moves the cursor… the entry stays as lower case until they arrow over the entry and then it is forced to upper case. I have already used up the 3 conditional formattings allowed in the worksheet… that is why I needed the fourth. I have since added a fifth and anticpate more. And you are absolutely correct about the Case Else… I have deliberately left it out until I am sure that I have all the other conditions set… I will then add the case else.
Again…thanx so much for your help with this.
Dennis
-
DennisK50
AskWoody LoungerLegare…
Thanx so much for your input. However… the code DOES work. It forces any lower case entry to capitals throughout the range. Maybe it shouldn’t work…but it does. If a person makes an entry in a cell and hits Enter… the entry is forced to upper case. If a person makes an entry and just moves the cursor… the entry stays as lower case until they arrow over the entry and then it is forced to upper case. I have already used up the 3 conditional formattings allowed in the worksheet… that is why I needed the fourth. I have since added a fifth and anticpate more. And you are absolutely correct about the Case Else… I have deliberately left it out until I am sure that I have all the other conditions set… I will then add the case else.
Again…thanx so much for your help with this.
Dennis
-
DennisK50
AskWoody LoungerHans & Legare…
Thanx so much for your input. Worked like a champ. Here is the actual code I ended up using.
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Excel.Range)
Application.EnableEvents = False
On Error Resume Next
If Not Application.Intersect(Target, Range(“H8:BI12”)) Is Nothing Then
Target(1).Value = UCase(Target(1).Value)
End If
Dim oCell As Range
If Intersect(Target, Range(“H8:BI12”)) Is Nothing Then Exit Sub
For Each oCell In Intersect(Target, Range(“H8:BI12”))
Select Case oCell.Value
Case “S”
oCell.Font.Bold = True
oCell.Font.ColorIndex = 10
End Select
Next oCell
Application.EnableEvents = True
End SubAs you can see it forces the value to upper case and colors the font bold green.
Dennis
-
DennisK50
AskWoody LoungerHans & Legare…
Thanx so much for your input. Worked like a champ. Here is the actual code I ended up using.
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Excel.Range)
Application.EnableEvents = False
On Error Resume Next
If Not Application.Intersect(Target, Range(“H8:BI12”)) Is Nothing Then
Target(1).Value = UCase(Target(1).Value)
End If
Dim oCell As Range
If Intersect(Target, Range(“H8:BI12”)) Is Nothing Then Exit Sub
For Each oCell In Intersect(Target, Range(“H8:BI12”))
Select Case oCell.Value
Case “S”
oCell.Font.Bold = True
oCell.Font.ColorIndex = 10
End Select
Next oCell
Application.EnableEvents = True
End SubAs you can see it forces the value to upper case and colors the font bold green.
Dennis
-
DennisK50
AskWoody LoungerWorked like a charm!! Thanx so much.
Dennis
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Documents, Pictures, Desktop on OneDrive in Windows 11 (Awaiting moderation)
by
ThePhoenix
2 minutes ago -
End of 10
by
Alex5723
25 minutes ago -
End Of 10 : Move to Linux
by
Alex5723
54 minutes ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 hour, 45 minutes ago -
Privacy and the Real ID
by
Susan Bradley
3 hours, 48 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
11 hours, 59 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
13 hours, 49 minutes ago -
Upgrading from Win 10
by
WSjcgc50
7 hours, 7 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
5 hours, 52 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
1 day, 2 hours ago -
The story of Windows Longhorn
by
Cybertooth
14 hours, 11 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
1 day, 4 hours ago -
Are manuals extinct?
by
Susan Bradley
40 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
1 day, 13 hours ago -
Network Issue
by
Casey H
1 day ago -
Fedora Linux is now an official WSL distro
by
Alex5723
2 days, 1 hour ago -
May 2025 Office non-Security updates
by
PKCano
2 days, 1 hour ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
2 days, 3 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
1 day, 4 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
2 days, 6 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
2 days, 6 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
2 days, 13 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 day, 5 hours ago -
Asking Again here (New User and Fast change only backups)
by
thymej
3 days ago -
How much I spent on the Mac mini
by
Will Fastie
8 hours, 14 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
1 day, 3 hours ago -
Spring cleanup — 2025
by
Deanna McElveen
3 days, 6 hours ago -
Setting up Windows 11
by
Susan Bradley
2 days, 1 hour ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
3 days, 2 hours ago -
Powershell version?
by
CWBillow
3 days, 3 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.