-
WSLJM
AskWoody LoungerHi Amy,
I’m glad it worked! The 65,536 you asked about is the last row in Excel… at least it is the limit in the older versions of Excel (I use Excel 2002). The code basically starts with the last cell in that row (cell B65536) and then counts how many rows up from that cell to the bottom of the where the data is located (cell B29). This “count” is then used as the “x” to determine the bottom of the database for the “autofill” portion of the code.
Regards,
Lana -
WSLJM
AskWoody LoungerThis worked… thanks Hans!
Lana -
WSLJM
AskWoody LoungerHi Amy,
I’ve attached your worksheet with a macro that should do what you’d like it to do (press the pink button… I’ve attached the macro to it). I’ve inserted comments into the code so that you can see what I did. Also, please note that I changed the vlookup formula (in column C), likewise I changed the subtotal formula in A7… hopefully I assumed correctly in making these changes.
Regards,
Lana -
WSLJM
AskWoody LoungerI tried the change and I still couldn’t get it to work… I’ve attached a small version.
Thanks!!
Lana -
WSLJM
AskWoody LoungerOkay… I learn something new everyday… I was told years ago it had to be on the same worksheet and I always thought that it was odd! Thanks for setting me straight… this helps out tremendously… I just got your second response… you read my mind, as I was still interested in learning the form thingy in Visual Basic. I’ve just found it 10 minutes ago and I was playing around with it… how does the form get from the Visual Basic into Excel for the people to use??
Thanks Hans!!
Lana -
WSLJM
AskWoody LoungerMarch 14, 2008 at 12:12 am in reply to: Excel Macro to Send Email via Lotus Notes (Excel 2002) #1101891I got it to work…
I had to define the vaRecipient as follows:
vaRecipient = Worksheets(“lana”).Range(“A3”)
Also, I replaced the SendTo: part of the code with .SendTo = vaRecipient
Yahoo…
Thanks for the help Hans!
Lana -
WSLJM
AskWoody LoungerMarch 13, 2008 at 11:48 pm in reply to: Excel Macro to Send Email via Lotus Notes (Excel 2002) #1101883Hmmm… I must be doing something wrong… it accepts the code, however now it says that there is no name to send to and highlights the “.Send 0, vaRecipient” portion of the code. Any ideas? I’ve attached the worksheet with the macro in it.
Thanks!!!
Lana -
WSLJM
AskWoody LoungerYep, I wondered if Jan’s code was opening a 2nd session… I’m showing how green I really am, as I didn’t understand it. You can probably tell by my code that I’m more familiar with code that deals with moving stuff around in Excel, as opposed to actual programming code. So I understand what Jan wrote, could someone please explain what each line means (especially the part on where in the the code it says to go out and open the 2nd session). I’ll take care to heed Hans warning, as I know I’m quite the rookie… I may need to just live with the fact that my macro may run slow for this project… macros have spoiled me, as I love the completion of tasks in the speed of light for everything and everyone!
Thanks!
Lana -
WSLJM
AskWoody LoungerI’ll give this a try… thanks so much for your help Jan!
Lana -
WSLJM
AskWoody LoungerAttached is my file & macros (without the real data)… I’ve added Jan’s code as suggested, and tried it out, however I’m sure I don’t have it right (as it slowed down after 31 workbooks), and I’m not sure how it would know to stop or shut down after 30 workbooks saved, and how it would know where to start back up again on the list of customers??? Any ideas would be awesome!! The main macro is named CreateStmts in module 3.
Thanks so much!
Lana -
WSLJM
AskWoody LoungerThanks to all for responding! I’m unsure as to how to incorporate the code Jan wrote into my code. Do I put the function in a module, or attached to a particular worksheet, and how do I get it to work?
Thanks!
Lana -
WSLJM
AskWoody LoungerI tried the two different options you mentioned Hans… and with each option (turned off virus, saved files to local drive), it still slowed dramatically down at the 32nd workbook. Any other ideas?
Thanks!
Lana -
WSLJM
AskWoody LoungerThank you Hans & Jerry… I appreciate the help!
Lana -
WSLJM
AskWoody LoungerThanks Jerry & Hans… these examples help me understand it! I appreciate the tutorial!!
Lana -
WSLJM
AskWoody LoungerAwesome… thanks Hans!
Lana
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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
-
Can’t make Opera my default browser
by
bmeacham
6 minutes ago -
Do not Fall For This Purdentix Scam (Awaiting moderation)
by
elizabethkaur56
6 hours, 5 minutes ago -
*Some settings are managed by your organization
by
rlowe44
16 hours, 4 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
18 hours, 18 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
18 hours, 42 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 3 hours ago -
AI slop
by
Susan Bradley
1 day, 2 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 4 hours ago -
Two blank icons
by
CR2
14 hours, 33 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 13 hours ago -
End of 10
by
Alex5723
1 day, 16 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
14 hours, 28 minutes ago -
test post
by
gtd12345
1 day, 22 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 12 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 4 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 2 hours ago -
Upgrading from Win 10
by
WSjcgc50
14 hours, 38 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
18 hours, 12 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 18 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 6 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 20 hours ago -
Are manuals extinct?
by
Susan Bradley
6 hours, 10 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 5 hours ago -
Network Issue
by
Casey H
2 days, 16 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 17 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 18 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 20 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 20 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 22 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 22 hours ago
Recent blog posts
Key Links
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.