Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 21st, 2008, 11:46 AM
Registered User
Join Date: May 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default access function in data sheet(another sheet)

Hi VBA excel gurus

I have searched on google and different forums but could not find answer. I am looking for how to call Public function in a sheet "Data-Sheet" from another sheet "OutputSheet". I have tried the following code which didn't work for me.

'in OutputSheet
dim s as string
Dim ws as worksheet
set ws=worksheet("Data-Sheet")
s=ws.GetHeadingDetails 'Where GetHeadingDetails is a fucntion.

Please reply ASAP. I am running late for this project. .....tight deadline plzzzzzzz

Old May 21st, 2008, 07:15 PM
Friend of Wrox
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts

Hi Ramzan

Can you try

s = Worksheets("Data-Sheet").GetHeadingDetails



VBA Tips & Tricks (http://www.vbadud.blogspot.com)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Workbook,Copy Sheet,Move Sheet, Close/Save ptrussell2009 Excel VBA 0 June 13th, 2008 02:28 PM
Import Data from Open Excel Sheet to Access chintu4u Pro VB Databases 0 May 15th, 2006 01:24 AM
access data of excel sheet into sql server in asp KGANESH2006 SQL Server ASP 2 April 20th, 2006 02:33 AM
Exporting data from MS Excel sheet to Ms Access ajindal General .NET 1 January 17th, 2005 03:00 AM
Update Access data from excel sheet Swift_PC Access VBA 1 October 20th, 2004 01:51 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.