Hello Experts,
i tried using recorded marco but still having slight chanllenges, it can
pick the worksheet unless the particular worksheet is active. kindly amend
this macro for me. thanks

Sub Extractdata()

With Worksheets("Module").Range("B2").Value
    Range("C3:C66").Select
    Selection.Copy
    Sheets("Module").Select
    Range("J2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
        :=False, Transpose:=False
    Selection.SpecialCells(xlCellTypeBlanks).Select
    Application.CutCopyMode = False
    Selection.Delete Shift:=xlUp
   End With

End Sub

On Thu, Mar 28, 2013 at 12:11 PM, Hilary Lomotey <resp...@gmail.com> wrote:

>  [image: Boxbe] <https://www.boxbe.com/overview> This message is eligible
> for Automatic Cleanup! (resp...@gmail.com) Add cleanup 
> rule<https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Ftoken%3DSZeJRZAkPWRnQdTTEzoEaW3iZl%252Fql2Cy6ZGV%252Fqc77GfgZF76q0tP5wqW%252FbjE58EoEIuuSYf4XVrbzExk25qQ6Yyj7%252FxMs%252FCjWYZmYb6vdNpgr5excC7TKRd75f5tdtALy0GgFJupmT4%253D%26key%3DEcqCbLCVCg2Ltr2xLuOuq8OrjXIfqBBGuHJliw%252BlmUA%253D&tc_serial=13845676733&tc_rand=675996406&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>|
>  More
> info<http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=13845676733&tc_rand=675996406&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>
> Hi Experts
>
> i have attempted to write a VBA code to extract data from one sheet to
> another but am getting a debug error, kindly assist. What am trying to
> achieve is
> if i select a name from the list of users in the dashboard, that name is
> always a sheet name, i want to copy all the list of institution visited
> from the selected sheet name (or member of the user list) and paste in the
> module sheet range J2, but this has to be automatic ie when i select a user
> it shd run the code and paste it in that range. thanks
>
> --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at http://groups.google.com/group/excel-macros?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to