Premium Only Content
![Get Computer Name with VBA Code using FactoryTalk View Studio Site Edition](https://1a-1791.com/video/s8/1/E/6/V/J/E6VJd.qR4e-small-Get-Computer-Name-with-VBA-.jpg)
Get Computer Name with VBA Code using FactoryTalk View Studio Site Edition
Adding a text element in your HMI application that is used in the VBA code to display your computer name instead of the text inside the text element by setting Expose To VBA to VBA Control.
1. Create a Text object on your SE graphic display.
2. Once this object is created, right-click on it and select Property Panel
3. Set the ExposeToVBA property to VBA Control
4. Add the following code to your graphic’s AnimationStart event. In this example, the name of the Text object is StationName:
Private Sub Display_AnimationStart()
StationName.Caption = Environ("COMPUTERNAME")
End Sub
0:00 Quick Intro
0:53 Adding the Text Element
1:35 Changing the name of the Text element
2:30 Expose to VBA set to VBA Control
3:15 Opening VBA code
3:40 Find Display Animation
4:00 Writing the VBA code
5:35 Fixing the compile error - I had a fat finger moment
6:17 Explaining the VBA code in-depth
6:30 Testing the VBA code
7:45 Launching the HMI client for another test
8:28 Recommended videos for you
I hope it helped.
Thank you for watching the video.
Learn, Implement, Succeed
Visit:
https://www.allen-bradley-plc-training.com/
Other social media:
LinkedIn: https://www.linkedin.com/in/shane-welcher-sr/
Facebook: https://www.facebook.com/OnlinePLCSupport
#VBAcode #ExposeToVBA #VBAcontrol #FactoryTalk
-
3:59
Shane Welcher
1 year agoStudio 5000 Download Failed - Communications Timed Out
42 -
2:11:20
I_Came_With_Fire_Podcast
13 hours agoFar Left TROJAN HORSE | SPECIAL Forces in MEXICO | GERMANY under FIRE
14.8K12 -
1:41:00
Darkhorse Podcast
10 hours agoIf Only We’d Known: The 265th Evolutionary Lens with Bret Weinstein and Heather Heying
130K34 -
1:58:29
Conspiracy Pilled
3 days agoThe Vaccine Conversation (S5 - Ep17)
43.8K2 -
11:22
Tundra Tactical
7 hours ago $3.30 earnedUSA vs Canada HOCKEY Fight: The Real PRIDE Fighting.
57.9K7 -
54:43
LFA TV
1 day agoWhy Exposing Waste and Fraud Terrifies the Beltway | TRUMPET DAILY 2.19.25 7PM
49.2K5 -
1:01:13
Candace Show Podcast
9 hours agoBlake Lively's BOMBSHELL Legal Filing | Candace Ep 149
119K140 -
1:11:22
Vigilant News Network
12 hours agoElon Musk Shuts Down RFK Jr. Critics With One Powerful Statement | The Daily Dose
81.8K28 -
1:12:23
Dad Dojo Podcast
1 day ago $2.13 earnedEP20: The Super Bowl and Solving The Economy
45.5K -
4:49
Tactical Advisor
3 days agoBest Small Handgun Optics | CH PWS Shot Show 2025
31.5K2