Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Launch Excel to a certain worksheet

Featured Replies

How do I open an excel workbook to a specific worksheet whose name matches the contents of a field in FM7?

I have tried to use a hyperlink but can't get FM to pass worksheet i.e. c:/workbook.xls#sheetname

I also tried using the Send Event script step but couldn't get it to pass the worksheet name either.

How can this be done using VB Script or ANY other solution? Again, I need to pass the contents of a field in FM7 to some soft of external script that will select and display an Excel worksheet of the same name as the contents of the field.

Thanks in advance!

~ Tyler

In it's simplest form it would look something like this:


Set xl = CreateObject("Excel.Sheet")

xl.Application.Workbooks.Open "newbook.xls"

ActiveWorkbook.Worksheets("Sheet1").Activate



set xl = nothing

You'd probably want to beed it up with some error handling and messages for your users.

Now the challenge is in executing this from FM. A VBscript is merely a text file on the hard disk saved witha ".vbs" extension.

FM can execute that external file through the Send Event.

Have a look in the examples/samples tutorial for some of the things I've posted there. It includes some working ways of

- generating VBscript syntax dynamically (which is what you want to do since you want content of your FM file in your VBscript)

- execute it

You can also use a VBscript plugin for this.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.