473,548 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Excel Automation-With Visual Basic 6

58 New Member
[left]
Hi to all,

/*************** **************/
OS-WIn XP SP2
VB6 SP6
/*************** **************/

Is their anyone who can help me with this:

Source code written on VB6.

Description:
When this procedure is fired. It will read and seach from an excel file and locate the INPUTTED text as search item. Searching will start from Column 'L' to 'Z' and from rows 'L6' to 'L2915'

(this is my old program in vb6 and due to business i cant focus on this)
This module is already working... problem is it eats a lot of resources ...
can anyone pls tell me how to re-write this code...?


any help is appreciated...


Thank you!

Private Sub Cmd_Click(Index As Integer)
Dim xlApp As New Excel.Applicati on
Dim xlBook As New Excel.Workbook
Dim xlBook2 As New Excel.Workbook
Dim xlSheet As New Excel.Worksheet
Dim wksht As New Worksheet '*Ref to worksheet
Dim wksht2 As New Worksheet '*Ref to worksheet

Dim Var1 As String 'Holds the search string
Dim ctr As Long, Duplicate As Long, Counter As Long: Counter = 6
Dim c As Object, Bilang As Long, Bilang2 As Long, AddL As Currency: AddL = 0
Dim AddL2 As Currency: AddL2 = 0 'Monthly Dep.
Dim AddL3 As Currency: AddL3 = 0 'Lease Payable
Dim AddL4 As Currency: AddL4 = 0 'Interest
Dim BlnL6L9 As Boolean, OK_Item As Boolean 'Row six to nine
BlnL6L9 = False: OK_Item = False
Dim RowCntr As Long: RowCntr = 6
Dim IsNextCol As Boolean: IsNextCol = False
Dim Alphabet As Integer
Dim Letters As Integer
Dim A

On Error GoTo ErrDisplay

Select Case Index
Case 0 '*Display
Screen.MousePoi nter = vbHourglass
If ((txtLN.Enabled = True Or txtLN.Enabled = False) And Len(txtLN.Text) = 0) Then 'Or ((CboGroups.Ena bled = True Or CboGroups.Enabl ed = False) And Len(CboGroups.T ext) = 0) Then
If CboGroups.Enabl ed = False Then
MsgBox "Input Required.", vbInformation
Screen.MousePoi nter = vbDefault
Exit Sub
End If
End If


Set xlApp = New Excel.Applicati on
Set xlBook = xlApp.Workbooks .Open("C:\Fix assets\Asset Managment (2) (2) 10 03 2006.xls")


If CboGroups.Enabl ed = True Then _
If CboGroups.Text = "ALL" Then xlApp.Visible = True: GoTo EndShow

Set xlSheet = xlApp.Worksheet s("summary")
xlSheet.Visible = xlSheetVisible


'************** *************** ****Groups
If Opt(0).Value = True Then 'Groups 'where =trim(CboGroups .text)


'Copy Worksheet Summary
xlApp.Worksheet s.Copy xlApp.Worksheet s("summary")
Set wksht = xlApp.Worksheet s("summary (2)") 'xlBook.Workshe ets(1)
wksht.Activate

Var1 = Trim(CboGroups. Text)
Set foundcell = xlBook.Workshee ts("summary").C olumns("L").Fin d(Var1)
'If in column L did not find then move to other columns (M-Z)
If foundcell Is Nothing Then
For Letters = 77 To 90
Set foundcell = xlBook.Workshee ts("summary").C olumns(Chr$(Let ters)).Find(Var 1)
If Not foundcell Is Nothing Then Exit For
Next Letters
End If
'If not found from columns(A-Z)
If foundcell Is Nothing Then
MsgBox "Not found.", vbInformation
Screen.MousePoi nter = vbDefault
Exit Sub
End If

Duplicate = 0 'Set counter to 0 trace how many duplicates
Counter = 6 'Rows indicators/Count ...starts with rows 6
Bilang2 = 1 'Counts 1 to 4 rows


Dim blnFirst As Boolean: blnFirst = True
Dim blnUna As Boolean
Dim Merun As Boolean

'************** *************** ****** EXCEL TEMPLATE
Set xlBook2 = xlApp.Workbooks .Open(App.Path & "\Asset Managment Template.xls")
'************** *************** ****** EXCEL TEMPLATE
'************** *************** **********
Set wksht2 = xlBook2.Workshe ets("summary")
wksht2.Activate

xlApp.DisplayAl erts = False
xlBook2.Saved = True
'************** *************** **********
For Each c In wksht.Range("L6 :L2915") 'Find range and instance
Screen.MousePoi nter = vbHourglass

If Trim(CStr(wksht .Range("K" & Counter))) = "Group" Then 'And OK_Item = True Then
If Trim(CStr(wksht .Range("K" & Counter))) = "Group" Then 'And Not IsNull(Trim(CSt r(wksht.Range(" L" & Counter)))) Then

For Alphabet = 76 To 90 'L-Z
If Trim(CStr(wksht .Range(Chr$(Alp habet) & Counter))) = Trim(Var1) Then _
Merun = True
Next Alphabet

If Merun = True Then
Duplicate = Duplicate + 1
Bilang = 7 '9
BlnL6L9 = True
wksht.Range("A" & (Counter - 4)).EntireRow.C opy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr) '.Range("A" & Counter).Rows 'wksht2.Range(" A" & Counter, "BG" & Counter).Row
RowCntr = RowCntr + 1

wksht.Range("A" & (Counter - 3)).EntireRow.C opy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr) '.Range("A" & Counter).Rows 'wksht2.Range(" A" & Counter, "BG" & Counter).Row
RowCntr = RowCntr + 1

wksht.Range("A" & (Counter - 2)).EntireRow.C opy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr) '.Range("A" & Counter).Rows 'wksht2.Range(" A" & Counter, "BG" & Counter).Row
RowCntr = RowCntr + 1

wksht.Range("A" & (Counter - 1)).EntireRow.C opy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr) '.Range("A" & Counter).Rows 'wksht2.Range(" A" & Counter, "BG" & Counter).Row
RowCntr = RowCntr + 1

wksht.Range("A" & (Counter)).Enti reRow.Copy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr) '.Range("A" & Counter).Rows 'wksht2.Range(" A" & Counter, "BG" & Counter).Row
RowCntr = RowCntr + 1

'************** *************** *************** *************** *******
wksht.Range("A" & (Counter + 1)).EntireRow.C opy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr) '.Range("A" & Counter).Rows 'wksht2.Range(" A" & Counter, "BG" & Counter).Row
RowCntr = RowCntr + 1

wksht.Range("A" & (Counter + 2)).EntireRow.C opy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr) '.Range("A" & Counter).Rows 'wksht2.Range(" A" & Counter, "BG" & Counter).Row
RowCntr = RowCntr + 1
'************** *************** *************** *************** *******
End If
Bilang2 = 1
Merun = False
End If

End If
Counter = Counter + 1
Screen.MousePoi nter = vbDefault
Next c

'************** *************** *************** *************** *************** *************
Counter = 0
Bilang = 0
Bilang2 = 0

xlApp.Visible = True


Set xlSheet = xlBook.Workshee ts("summary")
xlSheet.Visible = xlSheetHidden


ElseIf Opt(1).Value = True Then 'Lease Nos. 'where =trim(TxtLN.tex t)
'************** *************** *****Lease Nos.

'Copy Worksheet Summary
xlApp.Worksheet s.Copy xlApp.Worksheet s("summary")
Set wksht = xlApp.Worksheet s("summary (2)") 'xlBook.Workshe ets(1)
wksht.Activate

'Set Var1 = xlBook.Workshee ts("summary").R ange("c6")
Var1 = UCase(Trim(txtL N.Text))
Set foundcell = xlBook.Workshee ts("summary").C olumns("C").Fin d(Var1)

If foundcell Is Nothing Then
MsgBox "Not found.", vbInformation
Screen.MousePoi nter = vbDefault
Exit Sub
End If

Dim HasCaption As Boolean: HasCaption = True
Duplicate = 0 'Set counter to 0
Counter = 6 'Rows indicators/Count
Bilang2 = 1 'Counts 1 to 4 rows

'************** *************** ****** EXCEL TEMPLATE
Set xlBook2 = xlApp.Workbooks .Open(App.Path & "\Asset Managment Template.xls")
'************** *************** ****** EXCEL TEMPLATE
'************** *************** **********
Set wksht2 = xlBook2.Workshe ets("summary")
wksht2.Activate

xlApp.DisplayAl erts = False
xlBook2.Saved = True
'************** *************** **********

For Alphabet = 76 To 90 'L-Z

For Each c In wksht.Range("C6 :C2915") 'Find range and instance
Screen.MousePoi nter = vbHourglass

If c.Value = Var1 Then
Duplicate = Duplicate + 1
Bilang = 7
Bilang2 = 1
AddL = AddL + Round(wksht.Ran ge(Chr$(Alphabe t) & Counter))
BlnL6L9 = True
If IsNextCol = False Then
wksht.Range("A" & Counter).Entire Row.Copy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr) '.Range("A" & Counter).Rows 'wksht2.Range(" A" & Counter, "BG" & Counter).Row
RowCntr = RowCntr + 1
End If
Else
If Bilang > 0 Then
Bilang = Bilang - 1
If BlnL6L9 = True Then
Bilang2 = Bilang2 + 1
If Bilang2 <= 7 Then '4 Then
If Bilang2 = 2 Then
AddL2 = AddL2 + Round(wksht.Ran ge(Chr$(Alphabe t) & Counter))
If IsNextCol = False Then
wksht.Range("A" & Counter).Entire Row.Copy '.Copy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr)
RowCntr = RowCntr + 1
End If
ElseIf Bilang2 = 3 Then
AddL3 = AddL3 + Round(wksht.Ran ge(Chr$(Alphabe t) & Counter))
If IsNextCol = False Then
wksht.Range("A" & Counter).Entire Row.Copy '.Copy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr)
RowCntr = RowCntr + 1
End If
ElseIf Bilang2 = 4 Then
AddL4 = AddL4 + Round(wksht.Ran ge(Chr$(Alphabe t) & Counter))
If IsNextCol = False Then
wksht.Range("A" & Counter).Entire Row.Copy '.Copy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr)
RowCntr = RowCntr + 1
End If
'************** *************** *************** *************** *******
ElseIf Bilang2 = 5 Then
If IsNextCol = False Then
wksht.Range("A" & Counter).Entire Row.Copy '.Copy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr)
RowCntr = RowCntr + 1
End If
ElseIf Bilang2 = 6 Then
If IsNextCol = False Then
wksht.Range("A" & Counter).Entire Row.Copy '.Copy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr)
RowCntr = RowCntr + 1
End If
ElseIf Bilang2 = 7 Then
If IsNextCol = False Then
wksht.Range("A" & Counter).Entire Row.Copy '.Copy
xlBook2.ActiveS heet.Paste Destination:=xl Book2.Worksheet s("summary").Ra nge("A" & RowCntr)
RowCntr = RowCntr + 1
End If
'Bilang2 = 1
'************** *************** *************** *************** *******
End If
Else
BlnL6L9 = False
Bilang2 = 1
End If
End If
End If

End If
Counter = Counter + 1
Screen.MousePoi nter = vbDefault
Next c


If HasCaption Then
With wksht2
.Range("K" & RowCntr).Font.S ize = 10
.Range("K" & RowCntr).Font.B old = True
.Range("K" & RowCntr).Horizo ntalAlignment = 2 'Align left
.Range("K" & RowCntr).Value = "Book Value:"
.Range("K" & (RowCntr + 1)).Font.Size = 10
.Range("K" & (RowCntr + 1)).Font.Bold = True
.Range("K" & (RowCntr + 1)).HorizontalA lignment = 2 'Align left
.Range("K" & (RowCntr + 1)).Value = "Monthly Dep.:"
.Range("K" & (RowCntr + 2)).Font.Size = 10
.Range("K" & (RowCntr + 2)).Font.Bold = True
.Range("K" & (RowCntr + 2)).HorizontalA lignment = 2 'Align left
.Range("K" & (RowCntr + 2)).Value = "Lease Payable:"
.Range("K" & (RowCntr + 3)).Font.Size = 10
.Range("K" & (RowCntr + 3)).Font.Bold = True
.Range("K" & (RowCntr + 3)).HorizontalA lignment = 2 'Align left
.Range("K" & (RowCntr + 3)).Value = "Interest:"
End With
HasCaption = False
End If

With wksht2
.Range(Chr$(Alp habet) & RowCntr).Font.S ize = 10
.Range(Chr$(Alp habet) & RowCntr).Font.B old = True
.Range(Chr$(Alp habet) & RowCntr).Horizo ntalAlignment = 1 'Align Right
.Range(Chr$(Alp habet) & RowCntr).Value = Format(AddL, "#,###,###. #0")
.Range(Chr$(Alp habet) & RowCntr + 1).Font.Size = 10
.Range(Chr$(Alp habet) & RowCntr + 1).Font.Bold = True
.Range(Chr$(Alp habet) & RowCntr + 1).HorizontalAl ignment = 1 'Align Right
.Range(Chr$(Alp habet) & RowCntr + 1).Value = Format(AddL2, "#,###,###. #0")
.Range(Chr$(Alp habet) & RowCntr + 2).Font.Size = 10
.Range(Chr$(Alp habet) & RowCntr + 2).Font.Bold = True
.Range(Chr$(Alp habet) & RowCntr + 2).HorizontalAl ignment = 1 'Align Right
.Range(Chr$(Alp habet) & RowCntr + 2).Value = Format(AddL3, "#,###,###. #0")
.Range(Chr$(Alp habet) & RowCntr + 3).Font.Size = 10
.Range(Chr$(Alp habet) & RowCntr + 3).Font.Bold = True
.Range(Chr$(Alp habet) & RowCntr + 3).HorizontalAl ignment = 1 'Align Right
.Range(Chr$(Alp habet) & RowCntr + 3).Value = Format(AddL4, "#,###,###. #0")
End With

AddL = 0
AddL2 = 0
AddL3 = 0
AddL4 = 0
Duplicate = 0
Counter = 6

IsNextCol = True
Next Alphabet

With wksht2
.Range("B" & (RowCntr - 1), "I" & (RowCntr - 1)).Borders.Lin eStyle = 1
.Range("B" & (RowCntr - 1), "I" & (RowCntr - 1)).Borders.Wei ght = 3
End With

'************** *************** *************** ****
RowCntr = 6
'************** *************** *************** ****

xlApp.Visible = True

Set xlSheet = xlBook.Workshee ts("summary")
xlSheet.Visible = xlSheetHidden

'*Rename the worksheet
With xlBook
.Sheets("summar y (2)").Name = "fsummary" 'rename the sheet
Set wksht = .Sheets("fsumma ry") 'make this the active sheet
End With


End If '*Lease No

xlBook.Close

Screen.MousePoi nter = vbDefault
Case 1 '*Cancel
Unload Me
End Select
EndShow:
xlApp.WindowSta te = xlMaximized
Alphabet = 0
Letters = 0

Set c = Nothing
Set foundcell = Nothing
Set xlApp = Nothing
Set xlBook = Nothing
Set xlBook2 = Nothing '*
Set xlSheet = Nothing
Set wksht = Nothing
Set wksht = Nothing '*
Screen.MousePoi nter = vbDefault
Exit Sub
ErrDisplay:
MsgBox Err.Description & "" & Err.Source, vbInformation
Screen.MousePoi nter = vbDefault
End Sub
Jul 4 '07 #1
10 3099
Killer42
8,435 Recognized Expert Expert
Can you give us a bit more of an explanation as to what this code is meant to achieve? There is way too much of it to be just doing a simple search. And it's quite a lot to read.
Jul 4 '07 #2
Esmael
58 New Member
Hi...

From VB 6 using text box, i have two option of searching Lease No Column C on excel and Group Name column L. so from VB6 the program will read from the Excel File A and copy its summary sheets and add new tabs with name "summary 2" and transfer all the data to Excel File B same format with Excel File A.... but this one is a blank.... so the data from excel A-Copy by the program to write it to excel B.

The Excel also has a pattern that program also detects... if he find the search item... the program will start counting form 4 to 7.... because data starts at row 4. each group/Lease no is consist of 7 rows the program adopt that...
So all i need now is how to rewrite this code... below is my code that makes the program slow and eats lot of memory!


This part cause the delay! The copyng.....!!!
xlApp.Worksheet s.Copy xlApp.Worksheet s("summary") '*** This part cause the delay


is there any alternative for this one?


(i hope i could attached screenshots or the excel files here)


Thank You!
Jul 4 '07 #3
Killer42
8,435 Recognized Expert Expert
I'll look into this when I have some time - just about to leave work now.

You can add attachments, but note the following. You only get five minutes to edit a message after posting it. And to add an attachment you have to edit the post and hit the "Manage attachments" button in the "Additional options" section.
Jul 4 '07 #4
Esmael
58 New Member
I'll look into this when I have some time - just about to leave work now.

You can add attachments, but note the following. You only get five minutes to edit a message after posting it. And to add an attachment you have to edit the post and hit the "Manage attachments" button in the "Additional options" section.


I cant find were to attached my attachment!!! That module is fully functional... all i need is to know how to re-write that code. It eats a lot of memory. My PC memory is 2Gig , but if it runs on the lower memory it stop. maybe that is one of the limitation of excel...


Due to business also i cant focus on this one...i believed you could help me.

Thank YOu!
Jul 4 '07 #5
Killer42
8,435 Recognized Expert Expert
I cant find were to attached my attachment!!! That module is fully functional... all i need is to know how to re-write that code. It eats a lot of memory. My PC memory is 2Gig , but if it runs on the lower memory it stop. maybe that is one of the limitation of excel...

Due to business also i cant focus on this one...i believed you could help me.
I'll try. However, I may not be able to spend any time on this until the weekend. (It's Wednesday afternoon here now).

The problem may be one inherent in Excel, but it's likely that we can improve on it.

As for attachments, I'll try to attach a couple of screenshots here to show what I'm referring to. It's possible, of course, that you don't have the ability to add attachments. This has cropped up once or twice before, but I think it has all been fixed.

Note that if you just see a small bar with "Additional Options" at the left and a box with a "+" at the right (see 2nd image) then you need to click the "+" to expand the section.
Attached Images
File Type: jpg scrn01.jpg (9.2 KB, 266 views)
File Type: jpg scrn02.jpg (8.8 KB, 241 views)
File Type: jpg scrn03.jpg (30.0 KB, 310 views)
Jul 4 '07 #6
Esmael
58 New Member
HI...


I'ved done my first step... i manage to decreased its memory usage... but still need more...



is there anyone who can help me with this....?


thank you ....
Jul 9 '07 #7
Killer42
8,435 Recognized Expert Expert
Sorry, I remembered this once or twice on the weekend, but couldn't recall which thread it was. I've just e-mailed a link home so I'll be able to find it this evening. I won't have time to go into it until then.

How did you reduce the memory useage? Perhaps you had better post the latest version of the code. Or if the changes weren't too extensive, just the modified part, or a description of the change so I can apply it to the original code before I play with it.
Jul 9 '07 #8
Killer42
8,435 Recognized Expert Expert
I've been having a bit of a look at the code just now. I started out by trying to tidy up the indenting to make it easier to follow, but I keep getting lost because of the weird IF statements. Do you think you could break them down to clearer multi-line If .. End If structures?

For example...
Expand|Select|Wrap|Line Numbers
  1.   If CboGroups.Enabled = True Then _
  2.     If CboGroups.Text = "ALL" Then xlApp.Visible = True: GoTo EndShow
  3.  
I can'work out where control goes under what conditions, here. For a start you've got a single-line IF masquerading as a multi-line one. Then there are the multiple statements separated by colons, that I haven't seen used in ten years or something, hanging on the end of the line. When is the GoTo executed? I'm so confused...

This use of the continuation character on an IF statement is, in my opinion, a really bad idea. It leaves the reader searching for an End If statement. Unless they are reading with great care (which, let's face it, few do).

Presumably I could work it out given time, but I don't have a lot of time available to put into it, and it should be simpler for you since you already know your logic.

I give up... help! :)
Jul 10 '07 #9
Esmael
58 New Member
Thanx for the comments killer42,

actually this code was properly indented in my source ... sorry if i just copy ang paste it here... i know the burden of aligning it... specially the logic. But thank you... sorri i still dont know how to attached code here...hehehehe he


Happy New Year
Jan 17 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5038
by: cybertof | last post by:
Hello, Is there a way to connect (through automation) a c# application to a running Excel 2003 instance on a specific workbook ? In the past, i used to use GetObject(...) function in VB6. Regarding C#, I have heard about System.Runtime.InteropServices.marshal.GetActiveObject ("Excel.Application")
6
14544
by: Frank X | last post by:
Excel 2002 introduced a capability to add custom worksheet functions to Excel direct from a COM/ActiveX object. I can use C# to develop a COM object which I can use fine from Excel/VBA, however I can't see it using the Excel Tools/Add-Ins - Automation button. Now this appears to be because it is not an *ActiveX* COM object, apparently in...
6
2075
by: frankplank | last post by:
Hi *, I'm wondering if it is possible to create a C# object, and reference it *explicitly* in an excel document. I imagine this will be more possible if I programmatically populate the excel sheet cells, but I would like to avoid this. I'm thinking something like this: object1: DataArray ...; GetValue(StringVal) ; // get value of data...
7
2264
by: Franck | last post by:
Hi, I'm using an xls file through my web service to print out a pdf file from which I returned path. In this way, got a macro in my XLS file which do the print out. Testing it from the xls file works great. Testing it through my web service failed ! Looking in the pdf printer, I can see no sheets have been selected despite the fact I...
8
2173
by: jack | last post by:
Access is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UnauthorizedAccessException: Access is denied. ASP.NET is not authorized to access the requested...
5
3026
by: Wenke Ji | last post by:
Hi I open a Excel workbook using below API: Set ExcelServer = CreateObject("EXCEL.Application") Set TargetWorkbook = ExcelServer.Workbooks.Open (CurrentBook) Befor the programm exit , I use the below API: TargetWorkbook.Save TargetWorkbook.Close
1
7622
by: Robin Tucker | last post by:
Heres and interesting problem: I have a VB.NET program that creates reports via. Word Automation. This all works fine. What I want to do as part of this report generation process is to embed a graph/chart within the report, once again from VB.NET. I have chosen to use Excel.Chart.8. So, to embed I do this from VB.NET: Dim theNewShape...
6
598
by: a.theil | last post by:
Please help! I need a simple excel automation, just 2 write some files into excel. I do: Dim oXL As Excel.Application Dim oWB As Excel.Workbook Dim oSheet As Excel.Worksheet Dim oRng As Excel.Range
7
2426
by: rdemyan via AccessMonster.com | last post by:
I want to make sure that I'm closing an opened spreadsheet correctly. I've been having some locking up problems. The following code adds a dummy row to the spreadsheet to ensure that that the data gets transferred in the correct format. It seems to be working correctly, but if anyone has any comments on that I'd appreciate it. Right now, I'm...
4
2751
by: Keith Wilby | last post by:
How controllable from Access VBA is Excel? I'm currently using automation to dump 2 columns of data into an Excel spreadsheet so that the end user can create a line graph based on it. Could the line graph be created from Access as part of the automation process? Is it also possible to rename the Excel worksheets from Access? Thanks. ...
0
7438
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7707
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7951
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7466
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5362
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5082
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3475
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
751
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.