Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to assign macro coding into customized button?

Does anyone have any suggestions?

Customize your Toolbar by placing a button on it and assign the following
macro to
that button.

ToolsCustomizeCommandsMacros.

Drag smiley face to your Toolbar.


The given Micro coding
Sub Macro1()
Workbooks.Open Filename:="E:\folder\filename.xls", UpdateLinks:=3
End Sub

Does anyone have any suggestions on how to assign the following code into
the button?

Thanks in advance for any suggestions
Eric

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default How to assign macro coding into customized button?

Click on the button. The macro list will populate..Select the macro from the
list.

If this post helps click Yes
---------------
Jacob Skaria


"Eric" wrote:

Does anyone have any suggestions?

Customize your Toolbar by placing a button on it and assign the following
macro to
that button.

ToolsCustomizeCommandsMacros.

Drag smiley face to your Toolbar.


The given Micro coding
Sub Macro1()
Workbooks.Open Filename:="E:\folder\filename.xls", UpdateLinks:=3
End Sub

Does anyone have any suggestions on how to assign the following code into
the button?

Thanks in advance for any suggestions
Eric

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to assign macro coding into customized button?

Thank you very much for suggestions
Could you please give me any suggestions on how to place the coding into
macro? so I can select the macro from the list.
Thank you very much for any suggestions
Eric

"Jacob Skaria" wrote:

Click on the button. The macro list will populate..Select the macro from the
list.

If this post helps click Yes
---------------
Jacob Skaria


"Eric" wrote:

Does anyone have any suggestions?

Customize your Toolbar by placing a button on it and assign the following
macro to
that button.

ToolsCustomizeCommandsMacros.

Drag smiley face to your Toolbar.


The given Micro coding
Sub Macro1()
Workbooks.Open Filename:="E:\folder\filename.xls", UpdateLinks:=3
End Sub

Does anyone have any suggestions on how to assign the following code into
the button?

Thanks in advance for any suggestions
Eric

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default How to assign macro coding into customized button?

Hi Eric

--Set the Security level to low/medium in (Tools|Macro|Security).
--From workbook launch VBE using short-key Alt+F11.
--From VBE menu 'Insert' a module and paste your macro in the code pane.
--Get back to Workbook.
--You can either run macro from Tools|Macro|Run <selected macro() or click
on the toolbar button and assign the macro..

If this post helps click Yes
---------------
Jacob Skaria


"Eric" wrote:

Thank you very much for suggestions
Could you please give me any suggestions on how to place the coding into
macro? so I can select the macro from the list.
Thank you very much for any suggestions
Eric

"Jacob Skaria" wrote:

Click on the button. The macro list will populate..Select the macro from the
list.

If this post helps click Yes
---------------
Jacob Skaria


"Eric" wrote:

Does anyone have any suggestions?

Customize your Toolbar by placing a button on it and assign the following
macro to
that button.

ToolsCustomizeCommandsMacros.

Drag smiley face to your Toolbar.


The given Micro coding
Sub Macro1()
Workbooks.Open Filename:="E:\folder\filename.xls", UpdateLinks:=3
End Sub

Does anyone have any suggestions on how to assign the following code into
the button?

Thanks in advance for any suggestions
Eric

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to assign macro coding into customized button?

Thank you very much for suggestions
I have inserted the macro code into button, but when I move the workbook
file into different directory, the button cannot run the missing macro from
this workbook, could you please give me any suggestions on how to edit the
path on linking to macro coding for button?
Thank you very much for any suggestions
Eric

"Jacob Skaria" wrote:

Hi Eric

--Set the Security level to low/medium in (Tools|Macro|Security).
--From workbook launch VBE using short-key Alt+F11.
--From VBE menu 'Insert' a module and paste your macro in the code pane.
--Get back to Workbook.
--You can either run macro from Tools|Macro|Run <selected macro() or click
on the toolbar button and assign the macro..

If this post helps click Yes
---------------
Jacob Skaria


"Eric" wrote:

Thank you very much for suggestions
Could you please give me any suggestions on how to place the coding into
macro? so I can select the macro from the list.
Thank you very much for any suggestions
Eric

"Jacob Skaria" wrote:

Click on the button. The macro list will populate..Select the macro from the
list.

If this post helps click Yes
---------------
Jacob Skaria


"Eric" wrote:

Does anyone have any suggestions?

Customize your Toolbar by placing a button on it and assign the following
macro to
that button.

ToolsCustomizeCommandsMacros.

Drag smiley face to your Toolbar.


The given Micro coding
Sub Macro1()
Workbooks.Open Filename:="E:\folder\filename.xls", UpdateLinks:=3
End Sub

Does anyone have any suggestions on how to assign the following code into
the button?

Thanks in advance for any suggestions
Eric

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
How do I add a customized button with macro in Excel 2007 for acce Lmm Setting up and Configuration of Excel 2 September 18th 08 07:31 PM
Assign a macro to a button totofab Excel Discussion (Misc queries) 4 December 13th 07 06:16 PM
Customized Macro Button Check [email protected] Excel Discussion (Misc queries) 1 August 11th 07 12:23 AM
Assign a macro to a command button SheriTingle Excel Discussion (Misc queries) 4 September 25th 06 06:38 PM
How do I Assign Macro to a button? BellExcel Charts and Charting in Excel 4 May 20th 05 07:21 PM


All times are GMT +1. The time now is 02:56 PM.

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"