Click here to Skip to main content
15,890,282 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionadd in in word 2007 AND 2013 Pin
JR21230-Apr-16 7:39
JR21230-Apr-16 7:39 
QuestionContinuous data string to Access using vb 2010. Pin
Gus11328-Apr-16 22:37
Gus11328-Apr-16 22:37 
AnswerRe: Continuous data string to Access using vb 2010. Pin
Eddy Vluggen28-Apr-16 23:38
professionalEddy Vluggen28-Apr-16 23:38 
GeneralRe: Continuous data string to Access using vb 2010. Pin
Gus11329-Apr-16 1:13
Gus11329-Apr-16 1:13 
GeneralRe: Continuous data string to Access using vb 2010. Pin
Eddy Vluggen29-Apr-16 2:13
professionalEddy Vluggen29-Apr-16 2:13 
GeneralRe: Continuous data string to Access using vb 2010. Pin
Dave Kreskowiak29-Apr-16 2:54
mveDave Kreskowiak29-Apr-16 2:54 
PraiseRe: Continuous data string to Access using vb 2010. Pin
Gus11312-May-16 0:08
Gus11312-May-16 0:08 
Questionloop through VBA Pin
Rohit Lal25-Apr-16 23:29
Rohit Lal25-Apr-16 23:29 
Hi,

I have two sheets. One having warehouse(18 warehouse) and second having shop (50 Shops).

I need to map shops against warehouse within 200 KM.

I have written one code for the same but need to loop it. Code is mentioned below

Code will copy first warehouse from warehouse sheet and paste it against each all 50 shops in shop sheet.
Then one formula in the sheet (already updated in shop sheet) calculate the difference in KM between each shop and first warehouse. Then filtered out shops within 200 km, copy and paste (transpose) against first warehouse in warehouse sheet. Now I want to do same procedure for second warehouse then third till end. Please help



==================================
Sub RADIUS()


Worksheets("SHOP").Activate
AutoFilterMode = False
Range("f2:g4175").Clear
Worksheets("WAREHOUSE").Activate
Range("C2:d2").Select
Selection.Copy


Worksheets("SHOP").Activate
Range("f2:g4175").PasteSpecial _
Operation:=xlPasteSpecialOperationAdd
Application.Calculation = xlCalculationAutomatic


AutoFilterMode = True
Range("A1:h1").AutoFilter Field:=8, Criteria1:="<=200"
Range("A2:A" & Cells(Rows.Count, "A").End(xlUp).Row).SpecialCells(xlCellTypeVisible).Copy _


Worksheets("WAREHOUSE").Activate


Range("e" & Rows.Count).End(xlUp).Offset(1).Select


Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True


End Sub
AnswerRe: loop through VBA Pin
Richard MacCutchan25-Apr-16 23:43
mveRichard MacCutchan25-Apr-16 23:43 
GeneralRe: loop through VBA Pin
Rohit Lal26-Apr-16 0:53
Rohit Lal26-Apr-16 0:53 
GeneralRe: loop through VBA Pin
Richard MacCutchan26-Apr-16 1:52
mveRichard MacCutchan26-Apr-16 1:52 
AnswerRe: loop through VBA Pin
Sonhospa26-Apr-16 2:21
Sonhospa26-Apr-16 2:21 
QuestionHow to sort already filtered gridview data? The data is sorted but the sorting sort the whole data instead in the range that was set by the filter. Thanks in advance. Pin
Member 1247499425-Apr-16 21:15
Member 1247499425-Apr-16 21:15 
SuggestionRe: How to sort already filtered gridview data? The data is sorted but the sorting sort the whole data instead in the range that was set by the filter. Thanks in advance. Pin
Richard MacCutchan25-Apr-16 21:47
mveRichard MacCutchan25-Apr-16 21:47 
QuestionWhat does "GetFiles" do in system directories? Pin
Sonhospa25-Apr-16 1:14
Sonhospa25-Apr-16 1:14 
AnswerRe: What does "GetFiles" do in system directories? Pin
Richard Deeming25-Apr-16 2:01
mveRichard Deeming25-Apr-16 2:01 
GeneralRe: What does "GetFiles" do in system directories? Pin
Sonhospa25-Apr-16 2:46
Sonhospa25-Apr-16 2:46 
AnswerRe: What does "GetFiles" do in system directories? Pin
Bernhard Hiller25-Apr-16 22:12
Bernhard Hiller25-Apr-16 22:12 
GeneralRe: What does "GetFiles" do in system directories? Pin
Sonhospa26-Apr-16 3:23
Sonhospa26-Apr-16 3:23 
AnswerRe: What does "GetFiles" do in system directories? Pin
Sonhospa26-Apr-16 4:16
Sonhospa26-Apr-16 4:16 
QuestionUpdate UI of MDI Parent Pin
Sonhospa25-Apr-16 0:49
Sonhospa25-Apr-16 0:49 
QuestionVBScript DeleteFolder method cannot delete folders under System32 on Win 8.1 Pin
robwm121-Apr-16 10:36
robwm121-Apr-16 10:36 
AnswerRe: VBScript DeleteFolder method cannot delete folders under System32 on Win 8.1 Pin
Dave Kreskowiak21-Apr-16 14:31
mveDave Kreskowiak21-Apr-16 14:31 
AnswerRe: VBScript DeleteFolder method cannot delete folders under System32 on Win 8.1 Pin
Sonhospa25-Apr-16 0:59
Sonhospa25-Apr-16 0:59 
QuestionHow can i make the official VB.net TCP async Example work ?! Pin
Ghassan Mohamed Yousif20-Apr-16 23:53
Ghassan Mohamed Yousif20-Apr-16 23:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.