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
Teradata Where Clause - Limit date to this month
The future of VBA
Unable to access exchange webmail from a remote office
User.isInRole always return false
error message for HP laserjet 4700 model
PL/SQL Create Global Temp Table and insert records returned from SELECT query
How to connect Hyper-V Server 2008 R2 to Cluster Shared Volumes
Apache2 name-based virtual host & SSL
Error: "The site <sitename> could not be found in the Web application SPWebApplication Name=MOSS Parent=SPWebService"
Joomla SEF URLs