Click here to Skip to main content
15,902,114 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to create line graph using C# Pin
Ashutosh Phoujdar27-Jan-09 20:07
Ashutosh Phoujdar27-Jan-09 20:07 
AnswerRe: how to create line graph using C# Pin
dan!sh 27-Jan-09 23:57
professional dan!sh 27-Jan-09 23:57 
QuestionAnybody help me in CR Pin
BalasubramanianK27-Jan-09 18:23
BalasubramanianK27-Jan-09 18:23 
AnswerRe: Anybody help me in CR Pin
Jon_Boy28-Jan-09 5:35
Jon_Boy28-Jan-09 5:35 
Questionreading a text file from the resource file Pin
moonshaddow27-Jan-09 15:16
moonshaddow27-Jan-09 15:16 
AnswerRe: reading a text file from the resource file Pin
Ashutosh Phoujdar27-Jan-09 21:23
Ashutosh Phoujdar27-Jan-09 21:23 
GeneralRe: reading a text file from the resource file Pin
moonshaddow28-Jan-09 12:13
moonshaddow28-Jan-09 12:13 
QuestionLooking up Cell data with Mutiple Excel Workbooks running. Pin
frankiebaby227-Jan-09 13:19
frankiebaby227-Jan-09 13:19 
Hi,

If I have more thank one Workbook open and running in the background, how do I specify which wookbook my "" line is to look up?

(See the "PROBLEM IS HERE" & "AND HERE" lines below to see where I require help with code. Something must be insertable I figure.)

The other option might be in the module where the declairations are. Maybe it's possible to link the "xlsCellTs" to "xlsSheetTs" and or "xlsBookTs".


Try
xlsBookTs = xlsApp.Workbooks.Open("F:\filelocation\ts" & Format_(Me.MonthCalendar1.SelectionStart, "yyyyMMdd") & ".xls")
ExcelTsOpen = True
'Counts slots used and assigns value to tbxTinsToday
SlotsUsedToday = 0
TotalSlots = 0
NRow = 2
'Learns how many Total Slots are avail on any day. 
PROBLEM IS HERE (Below)!!
Do Until xlsCellTs.Range("A" & NRow).Value = ""
TotalSlots = TotalSlots + 1
tbxTotalSlots.Text = TotalSlots.ToString
AND HERE (Below)!!
If xlsCellTs1.Range("F" & NRow).Value = 1 Then
SlotsUsedToday = SlotsUsedToday + 1
End If
NRow = NRow + 1
Loop
tbxSlotsToday.Text = SlotsUsedToday.ToString
Catch ex As Exception 'Blank Date not previously used open SlotStatsIST.xls
xlsBookTs = xlsApp.Workbooks.Open("F:\filelocation\SlotStatsDefault.xls")
ExcelTsOpen = True
xlsSheetTs = xlsBookTs.Worksheets(1)
xlsBookTs.SaveAs("F:\filelocation\ts" & Format(Me.MonthCalendar1.SelectionStart, "yyyyMMdd") & ".xls")
ExcelTsSaved = True
End Try



Many thanks in advance to all helpers.
AnswerRe: Looking up Cell data with Mutiple Excel Workbooks running. Pin
Dave Kreskowiak28-Jan-09 3:06
mveDave Kreskowiak28-Jan-09 3:06 
GeneralRe: Looking up Cell data with Mutiple Excel Workbooks running. Pin
frankiebaby228-Jan-09 6:04
frankiebaby228-Jan-09 6:04 
GeneralRe: Looking up Cell data with Mutiple Excel Workbooks running. Pin
frankiebaby228-Jan-09 6:05
frankiebaby228-Jan-09 6:05 
GeneralRe: Looking up Cell data with Mutiple Excel Workbooks running. Pin
Dave Kreskowiak28-Jan-09 16:22
mveDave Kreskowiak28-Jan-09 16:22 
QuestionVBA Access design (sql) view Pin
FMpol27-Jan-09 10:41
FMpol27-Jan-09 10:41 
AnswerRe: VBA Access design (sql) view Pin
Dave Kreskowiak28-Jan-09 2:55
mveDave Kreskowiak28-Jan-09 2:55 
GeneralRe: VBA Access design (sql) view Pin
FMpol28-Jan-09 6:08
FMpol28-Jan-09 6:08 
QuestionUsing Wildcard in Declaring Variables Pin
IvanIT27-Jan-09 9:19
IvanIT27-Jan-09 9:19 
AnswerRe: Using Wildcard in Declaring Variables Pin
Dave Kreskowiak27-Jan-09 10:09
mveDave Kreskowiak27-Jan-09 10:09 
GeneralRe: Using Wildcard in Declaring Variables Pin
IvanIT27-Jan-09 10:37
IvanIT27-Jan-09 10:37 
GeneralRe: Using Wildcard in Declaring Variables Pin
Dave Kreskowiak27-Jan-09 10:46
mveDave Kreskowiak27-Jan-09 10:46 
AnswerRe: Using Wildcard in Declaring Variables Pin
Wendelius27-Jan-09 10:15
mentorWendelius27-Jan-09 10:15 
GeneralRe: Using Wildcard in Declaring Variables Pin
IvanIT27-Jan-09 10:38
IvanIT27-Jan-09 10:38 
GeneralRe: Using Wildcard in Declaring Variables Pin
Wendelius27-Jan-09 12:07
mentorWendelius27-Jan-09 12:07 
AnswerRe: Using Wildcard in Declaring Variables Pin
Guffa28-Jan-09 13:35
Guffa28-Jan-09 13:35 
GeneralRe: Using Wildcard in Declaring Variables Pin
IvanIT30-Jan-09 4:53
IvanIT30-Jan-09 4:53 
QuestionHow to sort data in DataGridView column who contain Date/Time records Pin
ivo7527-Jan-09 8:29
ivo7527-Jan-09 8:29 

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.