Cell reference to locate /store data in excel
Solved/Closed
Related:
- Cell reference to locate /store data in excel
- Microsoft store download - Download - App downloads
- Tentacle locker 2 app store - Download - Adult games
- Transfer data from one excel worksheet to another automatically - Guide
- Excel mod apk for pc - Download - Spreadsheets
- Tmobile data check - Guide
8 responses
RWomanizer
Posts
365
Registration date
Monday February 7, 2011
Status
Contributor
Last seen
September 30, 2013
120
Apr 28, 2011 at 01:59 AM
Apr 28, 2011 at 01:59 AM
Hi Suryam,
Finally i got codes for your problem. i have make some changes in your already defined macros, if the total value of invoice is zero than no data copies to invoice & data sheets and a msg displayed that " No new Invoice".
now come to your query.
qns 1) I generate a code to put hyperlink at each invoice no. by clicking insert hyperlink button. now when u click on invoice no. it link you to that particular invoice in invoice store sheet.
Qns 2) I put some code in Button221_Click() now when you click save invoice button it generate a new invoice next to privious one.
Qns 3) I make a new Sheet Data Reqd and a new button " Press to Save Data Reqd" in Sheet Invoice.
Link of your sheet is :
http://wikisend.com/download/602234/sales report model.xls
the codes are as below:
Finally i got codes for your problem. i have make some changes in your already defined macros, if the total value of invoice is zero than no data copies to invoice & data sheets and a msg displayed that " No new Invoice".
now come to your query.
qns 1) I generate a code to put hyperlink at each invoice no. by clicking insert hyperlink button. now when u click on invoice no. it link you to that particular invoice in invoice store sheet.
Qns 2) I put some code in Button221_Click() now when you click save invoice button it generate a new invoice next to privious one.
Qns 3) I make a new Sheet Data Reqd and a new button " Press to Save Data Reqd" in Sheet Invoice.
Link of your sheet is :
http://wikisend.com/download/602234/sales report model.xls
the codes are as below:
Sub InvoiceLocation()
Dim InvoiceNo, CellRef As String
Dim AC, rngOR As Range
Application.ScreenUpdating = False
For Each AC In Range("D5:D65536")
If (AC.Value = vbNullString) Then Exit Sub
With Sheets("Invoice store")
Set rngOR = Nothing
Set rngOR = .Cells.Find(What:=AC.Value, _
After:=.Cells(1, 1), _
Lookat:=xlPart, _
SearchDirection:=xlNext, _
MatchCase:=False)
If (rngOR Is Nothing) Then Exit Sub
CellRef = rngOR.Address
End With
AC.Select
InvoiceNo = "'INVOICE STORE'!" & rngOR.Address
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
InvoiceNo
Next AC
Application.ScreenUpdating = True
End Sub
Sub DataRqd()
Dim SourceWS As Worksheet, DestWS As Worksheet
Dim SourceRng, DestRow, CellDesc As Range
Dim lloop As Long
Set SourceWS = Sheets("INVOICE") 'adjust the sheet name
Set DestWS = Sheets("DATA REQD") 'adjust the sheet name
If SourceWS.Range("F41") = 0 Then
MsgBox "NO NEW DATA TO SAVE !!", vbExclamation + vbInformation, "INVOCE SAVED INTO INVOICE STORE"
Exit Sub
Else
For Each CellDesc In SourceWS.Range("B31:B40")
If CellDesc.Value = "" Then Exit For
With SourceWS
Set SourceRng = .Range("F15")
Set DestRow = DestWS.Range("A" & Rows.Count).End(xlUp).Offset(1)
SourceRng.Copy DestRow
SourceRng.Copy
DestRow.PasteSpecial xlPasteValuesAndNumberFormats
For lloop = 1 To 3
Set SourceRng = Choose(lloop, .Range("F17"), .Range("C15"), _
Range(CellDesc, CellDesc.Offset(0, 3))) 'adjust the range
Set DestRow = DestRow.Offset(0, 1)
SourceRng.Copy DestRow
SourceRng.Copy
DestRow.PasteSpecial xlPasteValuesAndNumberFormats
If lloop = 1 Then
With DestRow
.Value = Mid(DestRow, 9, 4)
.NumberFormat = "General"
End With
End If
Application.CutCopyMode = False
Next lloop
End With
Next CellDesc
MsgBox " DATA SAVED !!!", vbExclamation + vbInformation, "DATA SAVED TO DATA SHEET"
End If
End Sub
RWomanizer
Posts
365
Registration date
Monday February 7, 2011
Status
Contributor
Last seen
September 30, 2013
120
Apr 26, 2011 at 08:27 AM
Apr 26, 2011 at 08:27 AM
Could you please upload a sample EXCEL file WITH sample data, macro, formula , conditional formatting etc on some shared site like https://authentification.site , http://docs.google.com, http://wikisend.com/ , http://www.editgrid.com etc
AND post back here the link to allow better understanding of how it is now and how you foresee. Based on the sample book, could you re-explain your problem too.
Note: your data need not be to be real data but a good representative of how data looks like
AND post back here the link to allow better understanding of how it is now and how you foresee. Based on the sample book, could you re-explain your problem too.
Note: your data need not be to be real data but a good representative of how data looks like
hi I have uploaded my sample .xls file at this location .
http://wikisend.com/download/354188/sales report model.xlsa
I have placed my questions on the first sheet of my .xls work book.
pls help me.
thanks Suryam
http://wikisend.com/download/354188/sales report model.xlsa
I have placed my questions on the first sheet of my .xls work book.
pls help me.
thanks Suryam
hI,
YOUR CODE IS FANTASTIC. my problem was solved without doubt. really you are great. really I appreciate your knowledge and thank you very much for all your help. you have reduced my work greatly.
thanks again
cheers
bye suryam
YOUR CODE IS FANTASTIC. my problem was solved without doubt. really you are great. really I appreciate your knowledge and thank you very much for all your help. you have reduced my work greatly.
thanks again
cheers
bye suryam
RWomanizer
Posts
365
Registration date
Monday February 7, 2011
Status
Contributor
Last seen
September 30, 2013
120
Apr 28, 2011 at 03:53 AM
Apr 28, 2011 at 03:53 AM
You are most welcomed.
Cheers, :)
Rahul
Cheers, :)
Rahul
Hi , it's me again. I have a new question now. I will have traveller /passenger names who travel frequently (or having travelled atleast once by buying tickets from our agency) in my sales report. I have a worksheet containing names of the persons who took tickets from our agency. while creating a new invoice for a company/person...I need to type the names of the passengers under the "description" in the column B (b31:b42). pls refer to my sales report which is located at http://wikisend.com/download/354188/sales report model.xlsa .
Is there any way to get the names of the existing travellers(who are our old customers) while typing the names in the column range b31 to b42? I mean to say...suppose that Rahul is our old customer....and I am preparing a new invoice for his new travel trip . I need to type Rahul ...while typing R..can I get "PROMPTING" for the names of the persons whose starting letter is R? I may be crazy...but it helps me a lot ...pls help..bye suryam
Is there any way to get the names of the existing travellers(who are our old customers) while typing the names in the column range b31 to b42? I mean to say...suppose that Rahul is our old customer....and I am preparing a new invoice for his new travel trip . I need to type Rahul ...while typing R..can I get "PROMPTING" for the names of the persons whose starting letter is R? I may be crazy...but it helps me a lot ...pls help..bye suryam
RWomanizer
Posts
365
Registration date
Monday February 7, 2011
Status
Contributor
Last seen
September 30, 2013
120
May 2, 2011 at 12:43 AM
May 2, 2011 at 12:43 AM
hi Suryam,
Always Post your new Query in a new thread.
Regards,
Rahul
Always Post your new Query in a new thread.
Regards,
Rahul