Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Sharing macros

I am using Excel to develop some forms for my company. Once the master is
completed, it will be uploaded to a server and users will access it from a
repository. Do macros and vb code work the same in Excel as in Word? (i.e.,
..dot to doc). Once the employee downloads the master, can they share the
file while retaining the vb code or custom toolbars or do you run into the
same problems as in Word
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sharing macros


You should avoid sharing a workbook at all costs. You probably want to
have a template file that gets copies to the users workspace and let
them work of of the copy of the file.

What I would do is to create a batch file with a shortcut. When a user
need to use the template the batch file will copy the template to the
users local workspace and open the excel file. The template would
contain the macro and any standard formating of the worksheet that is
required. then if you need to make changes you can change the template
and the users will get the changes the next time they run the batch
file.

If you need to share data between different employees I would store the
data into an Access Database. Then from excel hae a macro that saves
the data to the Access Database and another macro which queries the
database and fills in the excel workbook.


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=189864

http://www.thecodecage.com/forumz/chat.php

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Sharing macros

"lenny" replied: Joel - my thanks... though I think I was too simplistic.
My company stores all electronic form templates (word, excel) on a server.
Our IT department sets up each computer so the 'templates' are accessed thru
each of the programs FILENEW. I have been setting up Word templates for
years and understand the relationship between the master or user group
template and the saved .doc. Excel as a vehicle for e-forms is relatively
new. I'm trying to understand if Excel has the same relationship with it's
child files as word, especially in regards to vb programming.

The code, when written or copied into the vb editor of a .xls file, seems to
stay put, but I noticed that the custom toolbar I created in the .xls file
disappeared from the VIEWTOOLBARS dropdown. I read in an obit that custom
toolbars do not pass with the files created off the master template. Are key
combinations lost also?

Regares - Lenny

"joel" wrote:


You should avoid sharing a workbook at all costs. You probably want to
have a template file that gets copies to the users workspace and let
them work of of the copy of the file.

What I would do is to create a batch file with a shortcut. When a user
need to use the template the batch file will copy the template to the
users local workspace and open the excel file. The template would
contain the macro and any standard formating of the worksheet that is
required. then if you need to make changes you can change the template
and the users will get the changes the next time they run the batch
file.

If you need to share data between different employees I would store the
data into an Access Database. Then from excel hae a macro that saves
the data to the Access Database and another macro which queries the
database and fills in the excel workbook.


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=189864

http://www.thecodecage.com/forumz/chat.php

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sharing macros


I not really an expert on Menues and Ribbons. I haven't need to do
this type programming. What I have seen other people do is use workbook
open macros to setup the menus and ribbons for workbooks. Each type
workbook would contian specific macros depending on the application. I
also have seen people use workbook close macro to remove the menues and
ribbons when the workbook is closed.


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=189864

http://www.thecodecage.com/forumz/chat.php

Reply
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
sharing macros Whitney Excel Discussion (Misc queries) 3 June 28th 08 09:47 AM
Sharing Macros Brad Excel Programming 2 September 28th 06 11:28 PM
Sharing Macros Russ Excel Discussion (Misc queries) 2 August 9th 05 02:58 AM
Sharing WBs with Macros Kestrel1492 Excel Programming 3 July 5th 05 06:29 PM
Sharing macros Julia[_3_] Excel Programming 1 March 8th 05 02:50 AM


All times are GMT +1. The time now is 09:28 AM.

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

About Us

"It's about Microsoft Excel"