LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating a spreadsheet from Foxpro using Object Model

With the push from a button on one of my FoxPro forms
using the Excel automation (object model), I create an
employee listing on a spreadsheet that will be sent to a
client. I protect the sheet so that the client cannot edit
the listing, but I want them to be able to add a NEW entry
(employee) into the listing if needed. So, in the VFP code
that's creating the spreadsheet, I want to add a button
that will:

-Unprotect the spreadsheet
-Insert a new row and "unlock" that row
-Protect the spreadsheet again with the password

I think I know how to add a button to the spreadsheet
through my code, but I don't know how to add the 'Click'
event code for the button from within my VFP code.

I've read the 'MS Office Automation with VFP' book and it
doesn't help.

This has to be entirely automated (no actual Excel
interaction).

Please help...any examples (VBA or VFP code) would be
welcome.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA: Where to find Excel Object model? N. Foldager Excel Discussion (Misc queries) 13 February 6th 05 06:43 PM
"Excel.Application" Object Model Shaker Charts and Charting in Excel 2 January 9th 05 10:24 AM
Freeze Panes with Object Model Tom Ogilvy Excel Programming 0 July 22nd 03 03:31 PM
Does MS Query have an object model Frank[_12_] Excel Programming 2 July 10th 03 10:54 PM
Accessing the VBA project object model Tom Ogilvy Excel Programming 0 July 8th 03 02:47 PM


All times are GMT +1. The time now is 10:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"