Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Invoices details


Dear sir,with best regards,i have in attached file ( main ) sheet and
about (26) sheets with nos.(1-18),each no.equal to (agent ) name as an
abbreviation to decrease the areas,i ask your goodselves if there is a
code to take me directly to any agent sheet when i press its no. or name
from the ( main) sheet? i mean ( if i want to go to (R) sheet i must
press (R) from the scheduale in main sheet ), iwant to do this because i
have about (50) agents with serial nos. and it is difficult to guess
there sheets nos.without taking a look to the scheduale.this is the
first . the second , is it possible to amend the code to transfer (2or3)
invoices details to each sheet with (2or3)agents names?i mean one sheet
for (2or3) agents.
Thanking you in advance.


+-------------------------------------------------------------------+
|Filename: new.zip |
|Download: http://www.thecodecage.com/forumz/attachment.php?attachmentid=163|
+-------------------------------------------------------------------+

--
tofimoon4
------------------------------------------------------------------------
tofimoon4's Profile: http://www.thecodecage.com/forumz/member.php?userid=138
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=105608

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Invoices details

From one I use on a menu sheet. Right click the sheet tabview
codecopy/paste this. Since you have the sheet number in column M this works
if you click on any number in column M

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
If Target.Column < Columns("M").Column Then Exit Sub
Application.DisplayAlerts = False
Dim WantedSheet As String
WantedSheet = Trim(target)
If WantedSheet = "" Then Exit Sub
On Error Resume Next
If Sheets(WantedSheet) Is Nothing Then
'GetWorkbook ' calls another macro to do that
Else
Application.GoTo Sheets(WantedSheet).Range("a4")
End If
Application.DisplayAlerts = True
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"tofimoon4" wrote in message
...

Dear sir,with best regards,i have in attached file ( main ) sheet and
about (26) sheets with nos.(1-18),each no.equal to (agent ) name as an
abbreviation to decrease the areas,i ask your goodselves if there is a
code to take me directly to any agent sheet when i press its no. or name
from the ( main) sheet? i mean ( if i want to go to (R) sheet i must
press (R) from the scheduale in main sheet ), iwant to do this because i
have about (50) agents with serial nos. and it is difficult to guess
there sheets nos.without taking a look to the scheduale.this is the
first . the second , is it possible to amend the code to transfer (2or3)
invoices details to each sheet with (2or3)agents names?i mean one sheet
for (2or3) agents.
Thanking you in advance.


+-------------------------------------------------------------------+
|Filename: new.zip |
|Download:
http://www.thecodecage.com/forumz/attachment.php?attachmentid=163|
+-------------------------------------------------------------------+

--
tofimoon4
------------------------------------------------------------------------
tofimoon4's Profile:
http://www.thecodecage.com/forumz/member.php?userid=138
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=105608


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Invoices details


Dear sir,many thanks for your interest ,i pasted the code in (main sheet
module) but got nothing when i have pressed any no. in (M) column.
I think i have a mistake in somewhere.
I need your advice,please.
Thankyou again.


--
tofimoon4
------------------------------------------------------------------------
tofimoon4's Profile: http://www.thecodecage.com/forumz/member.php?userid=138
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=105608

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Invoices details


Dear sir,i dont know what and where is the problem , i have clicked any
no. from (M) column and nothing changed.
Please ,can you (when you have a time) paste the code on my example to
show me how it works?
I am so sorry for insistence .


--
tofimoon4
------------------------------------------------------------------------
tofimoon4's Profile: http://www.thecodecage.com/forumz/member.php?userid=138
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=105608



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Invoices details

right click on the SHEET TAB then from the pop-up menu select 'View Code'
paste into the code window Don Guillett's code. it works

As before, you're file is not available to those of us who do not or cannot
register with thecodepage.com



"tofimoon4" wrote in message
...

Dear sir,i dont know what and where is the problem , i have clicked any
no. from (M) column and nothing changed.
Please ,can you (when you have a time) paste the code on my example to
show me how it works?
I am so sorry for insistence .


--
tofimoon4
------------------------------------------------------------------------
tofimoon4's Profile:
http://www.thecodecage.com/forumz/member.php?userid=138
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=105608

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Invoices details

Maybe you had linewrap which you should have been able to correct? Your
excel version?
Try this where I have accounted for line wrap. If this doesn't work, send
your file directly to my address along with the way you have it. NO reason
for it not to work

Private Sub Worksheet_BeforeDoubleClick _
(ByVal Target As Range, Cancel As Boolean)
If Target.Column < Columns("M").Column Then Exit Sub
Application.DisplayAlerts = False
Dim WantedSheet As String
WantedSheet = Trim(ActiveCell.Value)
If WantedSheet = "" Then Exit Sub
On Error Resume Next
If Sheets(WantedSheet) Is Nothing Then
'GetWorkbook ' calls another macro to do that
Else
Application.GoTo Sheets(WantedSheet).Range("a4")
End If
Application.DisplayAlerts = True
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"tofimoon4" wrote in message
...

Dear sir,i dont know what and where is the problem , i have clicked any
no. from (M) column and nothing changed.
Please ,can you (when you have a time) paste the code on my example to
show me how it works?
I am so sorry for insistence .


--
tofimoon4
------------------------------------------------------------------------
tofimoon4's Profile:
http://www.thecodecage.com/forumz/member.php?userid=138
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=105608


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Invoices details

After you sent your file, I see that you failed to follow my instructions,
also mentioned by Patrick, to right click the SHEET tab. NOT a regular
module.. Simply move the code to the MAIN sheet module.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Don Guillett" wrote in message
...
Maybe you had linewrap which you should have been able to correct? Your
excel version?
Try this where I have accounted for line wrap. If this doesn't work, send
your file directly to my address along with the way you have it. NO reason
for it not to work

Private Sub Worksheet_BeforeDoubleClick _
(ByVal Target As Range, Cancel As Boolean)
If Target.Column < Columns("M").Column Then Exit Sub
Application.DisplayAlerts = False
Dim WantedSheet As String
WantedSheet = Trim(ActiveCell.Value)
If WantedSheet = "" Then Exit Sub
On Error Resume Next
If Sheets(WantedSheet) Is Nothing Then
'GetWorkbook ' calls another macro to do that
Else
Application.GoTo Sheets(WantedSheet).Range("a4")
End If
Application.DisplayAlerts = True
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"tofimoon4" wrote in message
...

Dear sir,i dont know what and where is the problem , i have clicked any
no. from (M) column and nothing changed.
Please ,can you (when you have a time) paste the code on my example to
show me how it works?
I am so sorry for insistence .


--
tofimoon4
------------------------------------------------------------------------
tofimoon4's Profile:
http://www.thecodecage.com/forumz/member.php?userid=138
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=105608



  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Invoices details


Thank you very much my sir for this solution,really you are giant ,it
works very well now.


--
tofimoon4
------------------------------------------------------------------------
tofimoon4's Profile: http://www.thecodecage.com/forumz/member.php?userid=138
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=105608

  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Invoices details


Dear sir,with my regards and admiration,i want to ask if is it possible
to modify your excellent code to include (J) column in addition to (M).
Thanks in advance.


--
tofimoon4
------------------------------------------------------------------------
tofimoon4's Profile: http://www.thecodecage.com/forumz/member.php?userid=138
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=105608



  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Invoices details


As I mentioned before, it would be better to NOT bother with the sheet
numbers. Instead just use the a,b,c, etc to name the sheets.Then you simply
do away with L & M columns and rewrite my code to goto the sheet NAME
clicked in column J.

OR, better yet, design the file to have ONLY one sheet where you use
datafilterautofilter to see the individuals, as needed. You would do away
with the total column and use SUBTOTAL at the top instead.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"tofimoon4" wrote in message
...

Dear sir,with my regards and admiration,i want to ask if is it possible
to modify your excellent code to include (J) column in addition to (M).
Thanks in advance.


--
tofimoon4
------------------------------------------------------------------------
tofimoon4's Profile:
http://www.thecodecage.com/forumz/member.php?userid=138
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=105608


  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Invoices details


Dear sir,with my appreciation to your suggestion,i have built my program
(as you have seen) like my example,and it is difficult to change (some
or all) its contents now,i asked your goodself in my request --(if is it
possible--) because this change will help me more.
Thanks in advance.


--
tofimoon4
------------------------------------------------------------------------
tofimoon4's Profile: http://www.thecodecage.com/forumz/member.php?userid=138
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=105608

  #13   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Invoices details

No time like the present to learn better ways. Laziness is NO excuse. Use
this instead.

Private Sub Worksheet_BeforeDoubleClick _
(ByVal Target As Range, Cancel As Boolean)
Application.DisplayAlerts = False
Dim WantedSheet As String
If Target.Column = Columns("M").Column Then _
WS = Trim(Target.Value)
If Target.Column = Columns("J").Column Then _
WS = Columns("L").Find(Target, _
LookIn:=xlValues, LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False).Offset(1, 1)
If WS = "" Then Exit Sub
On Error Resume Next
If Sheets(WS) Is Nothing Then
'GetWorkbook ' calls another macro to do that
Else
Application.GoTo Sheets(WS).Range("b4")
End If
Application.DisplayAlerts = True
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"tofimoon4" wrote in message
...

Dear sir,with my appreciation to your suggestion,i have built my program
(as you have seen) like my example,and it is difficult to change (some
or all) its contents now,i asked your goodself in my request --(if is it
possible--) because this change will help me more.
Thanks in advance.


--
tofimoon4
------------------------------------------------------------------------
tofimoon4's Profile:
http://www.thecodecage.com/forumz/member.php?userid=138
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=105608


  #14   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Invoices details


Dear sir,with my regards,more than (55)viewers through more than latest
(30) pages means : you are the hero,you are the excellent.
Thank you very much for your experience.


--
tofimoon4
------------------------------------------------------------------------
tofimoon4's Profile: http://www.thecodecage.com/forumz/member.php?userid=138
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=105608

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
Invoices K11ngy Excel Discussion (Misc queries) 1 August 9th 07 12:51 PM
invoices dsfb Excel Discussion (Misc queries) 1 July 9th 07 10:19 PM
invoices toll Excel Worksheet Functions 2 March 16th 06 06:00 PM
how to set up invoices invoices Charts and Charting in Excel 0 June 29th 05 06:38 PM
Invoices Lunk Excel Discussion (Misc queries) 0 June 2nd 05 07:17 PM


All times are GMT +1. The time now is 11:46 AM.

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"