-
WSjha900
AskWoody LoungerThank you very much. I have a reference to excel 10.0 object library. I changed the code, see below. I still get a page fault error when i try it on a w95 box but i tested on both nt and w2000 and it works fine. Also, on the w95 box it does open excel but then i get a page fault error.
dim xlsApp as excel.application
private sub submit_click()
dim wb as workbookset xlsApp = new Excel.Application
xlsApp.Workbooks.Open filename:=App.Path & “contacts.xls”
call addtoexcelif msgbox(“enter another?”, vbyesno) = vbno then
activeworkbook.close saveChanges:=true
xlsApp.quit
set xlsApp = nothing
endelse
call cleartextboxes
end if
end subprivate sub addtoexcel()
dim rngData as range
dim rngRow as range
dim lastRow as integerworksheets(“Data”).activate
set rngData = xlsApp.Range(“A3”).currentregion
lastRow = rngData.rows.Count + 1
xlsApp.Range(“A” & lastRow) = txtDate.text
end sub -
WSjha900
AskWoody LoungerApril 2, 2002 at 12:01 am in reply to: Save screen resolution in an .ini file (w95, w2000, vb6) #579747ok, that i can do. now it makes sense thanks for hanging in there with me to explain.
-
WSjha900
AskWoody LoungerApril 1, 2002 at 4:46 pm in reply to: Save screen resolution in an .ini file (w95, w2000, vb6) #579666ok, yes now i see. After the user resizes their window i want to save the height and width and use the next time they open the program. I looked up code on saving to an .ini file but don’t understand it. I just want to save it somehow in my vb6 program so when the user opens the program up the window will be the same size as when they closed it. thanks for all the posts and the help
-
WSjha900
AskWoody LoungerApril 1, 2002 at 3:02 am in reply to: Save screen resolution in an .ini file (w95, w2000, vb6) #579611believe it or not my users wouldn’t know how to change their resolution.
-
WSjha900
AskWoody Loungerby w95 i meant windows 95. I tried to use the code with w95 and word97 and it bombed. thanks
-
WSjha900
AskWoody LoungerThank you. I’m not familiar with how to put these declare functions into a vb6 project? When i just cut and paste the code it doesn’t like the “Declare Function…” Do you know how i can modify for vb6? thanks a lot
-
WSjha900
AskWoody Loungeryes, that is in there already. I’ve set the reference to Microsoft Excel 10.0 object library.
The exe runs on win2000 and winnt but i get an error on win95. The error is not specific enough or doesn’t give me many details. I thought there might be another common element i’m supposed to add to this vb6 program to make it cross-platform compatible.
-
WSjha900
AskWoody Loungerhi, it’s me again. Everything is working well. I’m able to add different master templates to the “newpres”. After the user selects the sections they want and selects the template design they like, i need to add a client logo to their presentation. I want to add it to the master page so it appears in the bottom righthand corner of every slide.
I have the user put the client’s logo file in c:logos and then i have them enter the name of it into a textbox in my app’s form, txtClientLogo.text. How do I get to the slide master of the template that is chosen and insert the logo in a specific position? I’ve tried to do it using the macro reader but I can’t seem to program it for any file that is entered in the txtClientLogo.text box and located in c:logos.
Can you give me some guidance. Thank you
-
WSjha900
AskWoody Loungerthis is soooooo totally cool! i can’t thank you enough.
the move up and down works for me
-
WSjha900
AskWoody LoungerMarch 5, 2002 at 7:16 pm in reply to: Take out the asterisk (*) in a cell (Excel xp/win 2000) #574429worked great! thanks much
-
WSjha900
AskWoody LoungerMarch 1, 2002 at 3:38 pm in reply to: Find cell and shade it in another wksheet (Excel xp/win 2000) #573710Ok, thanks. What if they are in 2 different workbooks?
-
WSjha900
AskWoody LoungerThank you so much!
-
WSjha900
AskWoody Loungerok, it didn’t work with address property so i’ll try row. thanks a lot
-
WSjha900
AskWoody LoungerThank you. Once i have the array loaded I just want to extract the numbers of the cell. A41, A2424, i want to load another array with num(0) =41 and num(1)=2424. I’ve tried val(“A41”) but that doesn’t work. Thanks
-
WSjha900
AskWoody LoungerFebruary 7, 2002 at 3:31 am in reply to: Search and load into array in Excel xp (Excel xp, win2000) #568805j = 1
for each chart.object
Search for first chart.object and activate it
ActiveChart.SeriesCollection(1).select
ActiveChart.SeriesCollection(1).Points((Address(j)) – 7).select
with selection.interior
.colorIndex = 1
.Pattern=xlSolid
end with
j = j + 1
nextI have a list of 50 cities in column A. Next to it i have a bar chart that is a separate object. The bars are all red but i have to turn one of them black. I search thru the 50 cities for the words US TOTAL and say it falls in cell A41. It turns out that the “point” in the bar chart that needs to be made black is 7 less than 41. There are 100 of these charts on the sheet and it is an ongoing job, therefore i want to make an automatic way to make the bar black. Hope you can help me. thanks
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Who knows what?
by
Will Fastie
1 hour, 15 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
42 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
6 hours, 8 minutes ago -
Misbehaving devices
by
Susan Bradley
1 hour, 17 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
23 hours, 46 minutes ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
7 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
22 hours, 20 minutes ago -
Discover the Best AI Tools for Everything
by
Alex5723
22 hours, 29 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
12 hours, 38 minutes ago -
Rufus is available from the MSFT Store
by
PL1
20 hours, 41 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
1 day, 23 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
1 day, 5 hours ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
1 hour, 39 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
1 day, 19 hours ago -
Office gets current release
by
Susan Bradley
1 day, 21 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
3 days, 11 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
2 days, 20 hours ago -
Stop the OneDrive defaults
by
CWBillow
3 days, 12 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
3 days, 22 hours ago -
X Suspends Encrypted DMs
by
Alex5723
4 days ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
4 days, 1 hour ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
4 days, 1 hour ago -
OpenAI model sabotages shutdown code
by
Cybertooth
4 days, 2 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
3 days, 14 hours ago -
Enabling Secureboot
by
ITguy
3 days, 21 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
4 days, 10 hours ago -
No more rounded corners??
by
CWBillow
4 days, 6 hours ago -
Android 15 and IPV6
by
Win7and10
3 days, 19 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
4 days, 22 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
5 days, 1 hour ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.