Click here to Skip to main content
16,020,186 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to add row header to DataGridView in vb.net Pin
Andraw Tang14-Sep-10 12:32
Andraw Tang14-Sep-10 12:32 
AnswerRe: How to add row header to DataGridView in vb.net Pin
Prerak Patel20-Sep-10 22:19
professionalPrerak Patel20-Sep-10 22:19 
Questionhow to create data grid control in VB6.0 Pin
jainiraj14-Sep-10 2:38
jainiraj14-Sep-10 2:38 
AnswerRe: how to create data grid control in VB6.0 Pin
Dave Kreskowiak14-Sep-10 4:09
mveDave Kreskowiak14-Sep-10 4:09 
Questionhow to read xml data from xml file in VB6.0 Pin
jainiraj14-Sep-10 0:19
jainiraj14-Sep-10 0:19 
AnswerRe: how to read xml data from xml file in VB6.0 Pin
Eddy Vluggen14-Sep-10 9:06
professionalEddy Vluggen14-Sep-10 9:06 
QuestionPowerPoint slide animations flicker when onscreen text updated Pin
Hypermommy13-Sep-10 9:43
Hypermommy13-Sep-10 9:43 
QuestionReferencing Variables in Module1 Pin
Win32SF12-Sep-10 9:13
Win32SF12-Sep-10 9:13 
I’m using Excel VBA. I have a menu structure that appears when the spreadsheet loads. This code is in Module1 which is called from ThisWorkbook with the command “Call Sub AddMenus()”. The code samples below show the structure I’m working with. From UserForm1, for example, I need to reference a variable. I assume I need to create an object to talk to Module1 but can’t figure out how to do that in VBA (I’m familiar to C# but new to VBA).

Module1
Public Sub AddMenus()
Dim FormIndex As Integer
Dim ReportViewName(2 To 4) As String
‘create menu structure for the workbook
‘read variable values – FormIndex=2, etc.
End Sub

UserForm1
Want to say: “variable = Module1.FormIndex” but obviously doesn’t work

ThisWorkbook
Private Sub Workbook_Open()
Call Module1.AddMenus
End Sub
AnswerRe: Referencing Variables in Module1 Pin
Eddy Vluggen12-Sep-10 9:59
professionalEddy Vluggen12-Sep-10 9:59 
GeneralRe: Referencing Variables in Module1 Pin
Win32SF12-Sep-10 10:11
Win32SF12-Sep-10 10:11 
GeneralRe: Referencing Variables in Module1 Pin
Eddy Vluggen12-Sep-10 10:27
professionalEddy Vluggen12-Sep-10 10:27 
GeneralRe: Referencing Variables in Module1 Pin
Eddy Vluggen12-Sep-10 13:38
professionalEddy Vluggen12-Sep-10 13:38 
GeneralRe: Referencing Variables in Module1 Pin
Win32SF12-Sep-10 14:06
Win32SF12-Sep-10 14:06 
GeneralRe: Referencing Variables in Module1 Pin
ChandraRam17-Sep-10 2:23
ChandraRam17-Sep-10 2:23 
GeneralRe: Referencing Variables in Module1 Pin
Win32SF17-Sep-10 6:04
Win32SF17-Sep-10 6:04 
AnswerRe: Referencing Variables in Module1 Pin
ChandraRam12-Sep-10 11:28
ChandraRam12-Sep-10 11:28 
GeneralRe: Referencing Variables in Module1 Pin
Win32SF12-Sep-10 11:45
Win32SF12-Sep-10 11:45 
GeneralRe: Referencing Variables in Module1 Pin
ChandraRam12-Sep-10 11:48
ChandraRam12-Sep-10 11:48 
GeneralRe: Referencing Variables in Module1 Pin
Win32SF12-Sep-10 12:54
Win32SF12-Sep-10 12:54 
QuestionPaging in Datagridview Pin
C#Coudou9-Sep-10 15:27
C#Coudou9-Sep-10 15:27 
QuestionPop Out Side Menu (Visual Studio Style) Pin
eddieangel9-Sep-10 12:26
eddieangel9-Sep-10 12:26 
AnswerRe: Pop Out Side Menu (Visual Studio Style) Pin
tosch10-Sep-10 1:07
tosch10-Sep-10 1:07 
AnswerRe: Pop Out Side Menu (Visual Studio Style) Pin
Thomas Stockwell12-Sep-10 8:36
professionalThomas Stockwell12-Sep-10 8:36 
AnswerRe: Pop Out Side Menu (Visual Studio Style) Pin
darkelv13-Sep-10 19:46
darkelv13-Sep-10 19:46 
QuestionWhy are there no form control arrays in vb.net? Pin
MikeD 29-Sep-10 1:26
MikeD 29-Sep-10 1:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.