Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Can I have 2 user forms that relate to the same worksheet

Hi & thanks in advance,
I am trying to put 2 user forms that relate to the same worksheet, however
its not working...
I am getting an error message that says "Compile error: Invalid or
unqualified reference"
I am extremely new to programming so i would appreciate any help I can
get... I can email the "code" through if that helps.
--
Thanks,
Butterfly Girl
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Can I have 2 user forms that relate to the same worksheet

hi
why not just post your code here. everyone does it.

regards
FSt1

"ButterflyGirl" wrote:

Hi & thanks in advance,
I am trying to put 2 user forms that relate to the same worksheet, however
its not working...
I am getting an error message that says "Compile error: Invalid or
unqualified reference"
I am extremely new to programming so i would appreciate any help I can
get... I can email the "code" through if that helps.
--
Thanks,
Butterfly Girl

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Can I have 2 user forms that relate to the same worksheet

After 2 days of searching I actually found the answer myself!!! :-)
I left the _ (underscore) off the end of the 1st row & obviously this makes
a difference as to how the code is handled. Please explain why? But it is
now working perfectly.


lRow = ws.Cells(Rows.Count, 1) _
.End(xlUp).Offset(1, 0).Row

--
Thanks,
Butterfly Girl


"FSt1" wrote:

hi
why not just post your code here. everyone does it.

regards
FSt1

"ButterflyGirl" wrote:

Hi & thanks in advance,
I am trying to put 2 user forms that relate to the same worksheet, however
its not working...
I am getting an error message that says "Compile error: Invalid or
unqualified reference"
I am extremely new to programming so i would appreciate any help I can
get... I can email the "code" through if that helps.
--
Thanks,
Butterfly Girl

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Can I have 2 user forms that relate to the same worksheet

It is actually a single line of code.

lRow = ws.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row

_ is used as a line break; incase your code line is lenghty you can use a
space and underscore to break that to multiple lines.....

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


"ButterflyGirl" wrote:

After 2 days of searching I actually found the answer myself!!! :-)
I left the _ (underscore) off the end of the 1st row & obviously this makes
a difference as to how the code is handled. Please explain why? But it is
now working perfectly.


lRow = ws.Cells(Rows.Count, 1) _
.End(xlUp).Offset(1, 0).Row

--
Thanks,
Butterfly Girl


"FSt1" wrote:

hi
why not just post your code here. everyone does it.

regards
FSt1

"ButterflyGirl" wrote:

Hi & thanks in advance,
I am trying to put 2 user forms that relate to the same worksheet, however
its not working...
I am getting an error message that says "Compile error: Invalid or
unqualified reference"
I am extremely new to programming so i would appreciate any help I can
get... I can email the "code" through if that helps.
--
Thanks,
Butterfly Girl

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
Forms? Want floating user-option menu in worksheet. Mark Excel Programming 0 May 23rd 05 11:11 PM
Relate from one worksheet to another Excel Worksheet Functions 2 January 9th 05 01:00 PM
User forms & worksheet help! mebner Excel Programming 6 February 11th 04 02:26 AM
Worksheet value to user forms David Excel Programming 2 October 28th 03 11:43 PM
User forms Candee[_2_] Excel Programming 2 September 12th 03 03:11 PM


All times are GMT +1. The time now is 12:33 AM.

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"