Microsoft
Software
Hardware
Network
Question : Trying to optimize my VBA Code - help with syntax
Hi - I'm trying to use the same code but referencing different listview boxes. I thought I could get away with:
IF A = "XXXX" then
with lv1
else
with lv2
end if
That didn't work...So I thought I would assign it box = "XXXX" then use box.columnheaders... and that didn't work.
Is there a way I can accomplish this?
Thanks - Zack
Answer : Trying to optimize my VBA Code - help with syntax
You could make a ContextMenu appear in response to a ListBox item click:
http://msdn.microsoft.com/
en-us/libr
ary/
system
.windows.f
orms.conte
xtmenu(VS.
71).aspx
Use the Show() method:
http://msdn.microsoft.com/
en-us/libr
ary/
system
.windows.f
orms.conte
xtmenu.sho
w(VS.71).a
spx
Random Solutions
SQL 2008 Analysis Services hardware recommendations
In Outlook how do you create contact shortcuts when sending mail?
Can't Install Microsoft Entourage 2008 for Mac, Web Services Edition
Modal Popup Validation Summary
AIX DB2 error
splashscreen
Sharepoint - Add sub item links to top navigation.
MaxConnections parameter in websphere plugin
Set range name dynamically in VBA Excel
Changing Default Web Site Properties