ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   VBA code behind command button (https://www.excelbanter.com/excel-worksheet-functions/79064-vba-code-behind-command-button.html)

[email protected]

VBA code behind command button
 
I need to place code behind a command button on a worksheet, that will
take the user to another worksheet within the same workbook.

Can someone help?


Don Guillett

VBA code behind command button
 
I suggest using a button from the FORMS menu instead. Assign to a sub
sub gotosheet2
sheets("sheet2").select
end sub
or a range instead
application.goto sheets("sheet2").range("g4")


--
Don Guillett
SalesAid Software

wrote in message
oups.com...
I need to place code behind a command button on a worksheet, that will
take the user to another worksheet within the same workbook.

Can someone help?





All times are GMT +1. The time now is 04:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com