LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 477
Default Running Standard Module Code from Dataform

From a command button on a dataform the "on click" event,
can I run code from a Standard module?

Totally, separate Q:
In a standard module
where I use
Dim LrowS2 as Integer
and later in the code I have a line:
LrowS2 = Range("B65356").end(xlUp).row

I get compile error at this point, with explanation of:
Statement Invalid outside Type Block..
???? Not a clue here....



 
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
macro to standard module Simon Excel Discussion (Misc queries) 9 May 17th 07 08:25 PM
copying vba code to a standard code module 1vagrowr Excel Discussion (Misc queries) 2 November 23rd 05 04:00 PM
How to activate "New" tab in Dataform through VB Code shajueasow Excel Discussion (Misc queries) 2 May 1st 05 01:15 PM
Workbook and Standard Module wiseman Excel Programming 3 May 29th 04 05:37 PM
Renaming a standard module Todd Huttenstine[_2_] Excel Programming 5 December 31st 03 10:49 PM


All times are GMT +1. The time now is 10:01 PM.

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"